From 4ce2141966a09048b005e820cccaa0552549fc68 Mon Sep 17 00:00:00 2001 From: Jose Bovet Derpich Date: Fri, 29 Aug 2025 20:53:45 -0400 Subject: [PATCH 1/2] fix(worker): correct typo in error message for transport cancellation Signed-off-by: Jose Bovet Derpich --- crates/rmcp-macros/src/lib.rs | 4 ++-- crates/rmcp/src/transport/worker.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rmcp-macros/src/lib.rs b/crates/rmcp-macros/src/lib.rs index d827fe743..3a5deb4d7 100644 --- a/crates/rmcp-macros/src/lib.rs +++ b/crates/rmcp-macros/src/lib.rs @@ -16,7 +16,7 @@ mod tool_router; /// /// ## Usage /// -/// | feied | type | usage | +/// | field | type | usage | /// | :- | :- | :- | /// | `name` | `String` | The name of the tool. If not provided, it defaults to the function name. | /// | `description` | `String` | A description of the tool. The document of this function will be used. | @@ -47,7 +47,7 @@ pub fn tool(attr: TokenStream, input: TokenStream) -> TokenStream { /// In most case, you need to add a field for handler to store the router information and initialize it when creating handler, or store it with a static variable. /// ## Usage /// -/// | feied | type | usage | +/// | field | type | usage | /// | :- | :- | :- | /// | `router` | `Ident` | The name of the router function to be generated. Defaults to `tool_router`. | /// | `vis` | `Visibility` | The visibility of the generated router function. Defaults to empty. | diff --git a/crates/rmcp/src/transport/worker.rs b/crates/rmcp/src/transport/worker.rs index eaabc506e..769d448a5 100644 --- a/crates/rmcp/src/transport/worker.rs +++ b/crates/rmcp/src/transport/worker.rs @@ -15,7 +15,7 @@ pub enum WorkerQuitReason { error: E, context: Cow<'static, str>, }, - #[error("Transport canncelled")] + #[error("Transport cancelled")] Cancelled, #[error("Transport closed")] TransportClosed, From 405f4fef41985db7544e182ea535ca69cb5e90fa Mon Sep 17 00:00:00 2001 From: Jose Bovet Derpich Date: Fri, 29 Aug 2025 21:09:35 -0400 Subject: [PATCH 2/2] doc(typo): correct typo in field header for tool and tool_router usage sections Signed-off-by: Jose Bovet Derpich --- crates/rmcp-macros/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rmcp-macros/README.md b/crates/rmcp-macros/README.md index cf1317f45..7c2ff0747 100644 --- a/crates/rmcp-macros/README.md +++ b/crates/rmcp-macros/README.md @@ -18,7 +18,7 @@ This will generate a function that return the attribute of this tool, with type #### Usage -| feied | type | usage | +| field | type | usage | | :- | :- | :- | | `name` | `String` | The name of the tool. If not provided, it defaults to the function name. | | `description` | `String` | A description of the tool. The document of this function will be used. | @@ -44,7 +44,7 @@ In most case, you need to add a field for handler to store the router informatio #### Usage -| feied | type | usage | +| field | type | usage | | :- | :- | :- | | `router` | `Ident` | The name of the router function to be generated. Defaults to `tool_router`. | | `vis` | `Visibility` | The visibility of the generated router function. Defaults to empty. |