From eb46b4ce3b2d85447d0a5ecbf3cbf7bd1679f751 Mon Sep 17 00:00:00 2001 From: unship Date: Fri, 29 Aug 2025 18:20:03 +0800 Subject: [PATCH] refactor: simplify remove_route method signature (#401) --- crates/rmcp/src/handler/server/router/tool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rmcp/src/handler/server/router/tool.rs b/crates/rmcp/src/handler/server/router/tool.rs index 4a5ba34..bdef13e 100644 --- a/crates/rmcp/src/handler/server/router/tool.rs +++ b/crates/rmcp/src/handler/server/router/tool.rs @@ -228,7 +228,7 @@ where } } - pub fn remove_route(&mut self, name: &str) { + pub fn remove_route(&mut self, name: &str) { self.map.remove(name); } pub fn has_route(&self, name: &str) -> bool {