Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/rmcp-macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand All @@ -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. |
Expand Down
4 changes: 2 additions & 2 deletions crates/rmcp-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion crates/rmcp/src/transport/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub enum WorkerQuitReason<E> {
error: E,
context: Cow<'static, str>,
},
#[error("Transport canncelled")]
#[error("Transport cancelled")]
Cancelled,
#[error("Transport closed")]
TransportClosed,
Expand Down
Loading