Skip to content

Commit 43dff71

Browse files
committed
cleanup warnings
1 parent fc869cb commit 43dff71

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

crates/rmcp/tests/common/handlers.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use async_trait::async_trait;
21
use rmcp::{
32
ClientHandler, Error as McpError, RoleClient, RoleServer, ServerHandler,
43
model::*,
5-
service::{Peer, RequestContext, Service},
4+
service::{Peer, RequestContext},
65
};
76
use serde_json::json;
87
use std::{
@@ -21,6 +20,7 @@ pub struct TestClientHandler {
2120
}
2221

2322
impl TestClientHandler {
23+
#[allow(dead_code)]
2424
pub fn new(honor_this_server: bool, honor_all_servers: bool) -> Self {
2525
Self {
2626
peer: None,
@@ -31,6 +31,7 @@ impl TestClientHandler {
3131
}
3232
}
3333

34+
#[allow(dead_code)]
3435
pub fn with_notification(
3536
honor_this_server: bool,
3637
honor_all_servers: bool,

crates/rmcp/tests/test_logging.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ mod common;
44
use std::sync::{Arc, Mutex};
55

66
use common::handlers::{TestClientHandler, TestServer};
7+
// Fixed imports - remove unused ones
78
use rmcp::{
8-
ClientHandler, Error as McpError, Peer, RoleClient, RoleServer, ServerHandler, ServiceExt,
9-
model::{
10-
LoggingLevel, LoggingMessageNotificationParam, ServerCapabilities, ServerInfo,
11-
SetLevelRequestParam,
12-
},
13-
service::RequestContext,
9+
ServiceExt,
10+
model::{LoggingLevel, LoggingMessageNotificationParam, SetLevelRequestParam},
1411
};
1512
use serde_json::json;
1613
use tokio::sync::Notify;

0 commit comments

Comments
 (0)