Skip to content

Commit 01b8317

Browse files
committed
deps: bump rmcp to 1.4.0 and remove now-redundant tool_router field
rmcp 1.4.0 changes the tool_router macro to auto-generate the router without requiring it to be stored as a struct field. Remove the field and its initialization to fix the dead_code clippy error.
1 parent 378b58a commit 01b8317

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ignore = "0.4"
2727
lsp-types = "0.97"
2828
mcpls-core = { path = "crates/mcpls-core", version = "0.3.5" }
2929
predicates = "3.1"
30-
rmcp = "1.3"
30+
rmcp = "=1.4.0"
3131
rstest = "0.26"
3232
schemars = "1.2"
3333
serde = "1.0"

crates/mcpls-core/src/mcp/server.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use crate::bridge::Translator;
2323
#[derive(Clone)]
2424
pub struct McplsServer {
2525
context: Arc<HandlerContext>,
26-
tool_router: rmcp::handler::server::router::tool::ToolRouter<Self>,
2726
}
2827

2928
#[tool_router]
@@ -32,10 +31,7 @@ impl McplsServer {
3231
#[must_use]
3332
pub fn new(translator: Arc<Mutex<Translator>>) -> Self {
3433
let context = Arc::new(HandlerContext::new(translator));
35-
Self {
36-
context,
37-
tool_router: Self::tool_router(),
38-
}
34+
Self { context }
3935
}
4036

4137
/// Get hover information at a position in a file.

0 commit comments

Comments
 (0)