fix: resolve clippy warnings across workspace (#1195)
* fix: resolve clippy warnings across workspace * ci: also run clippy on rmcp with all features except local --all-features enables the local feature, which cfg-gates out tower.rs and most of the test suite, so the existing clippy step never actually lints them.
This commit is contained in:
parent
f9a68bfa5c
commit
6fa40536de
1 changed files with 277 additions and 289 deletions
|
|
@ -112,7 +112,7 @@ impl Default for PromptServer {
|
|||
}
|
||||
}
|
||||
|
||||
#[prompt_router]
|
||||
#[prompt_router(router = "prompt_router")]
|
||||
impl PromptServer {
|
||||
/// Simple greeting prompt without parameters
|
||||
#[prompt(
|
||||
|
|
@ -305,17 +305,17 @@ impl PromptServer {
|
|||
];
|
||||
|
||||
// Add tried solutions if any
|
||||
if let Some(tried) = args.tried_solutions {
|
||||
if !tried.is_empty() {
|
||||
messages.push(PromptMessage::new_text(
|
||||
Role::User,
|
||||
format!("I've already tried: {}", tried.join(", ")),
|
||||
));
|
||||
messages.push(PromptMessage::new_text(
|
||||
Role::Assistant,
|
||||
"I see you've already attempted some solutions. Let me suggest different approaches.",
|
||||
));
|
||||
}
|
||||
if let Some(tried) = args.tried_solutions
|
||||
&& !tried.is_empty()
|
||||
{
|
||||
messages.push(PromptMessage::new_text(
|
||||
Role::User,
|
||||
format!("I've already tried: {}", tried.join(", ")),
|
||||
));
|
||||
messages.push(PromptMessage::new_text(
|
||||
Role::Assistant,
|
||||
"I see you've already attempted some solutions. Let me suggest different approaches.",
|
||||
));
|
||||
}
|
||||
|
||||
messages.push(PromptMessage::new_text(
|
||||
|
|
@ -361,7 +361,7 @@ impl PromptServer {
|
|||
}
|
||||
}
|
||||
|
||||
#[prompt_handler]
|
||||
#[prompt_handler(router = self.prompt_router)]
|
||||
impl ServerHandler for PromptServer {
|
||||
fn get_info(&self) -> ServerInfo {
|
||||
ServerInfo::new(ServerCapabilities::builder().enable_prompts().build()).with_instructions(
|
||||
|
|
|
|||
Loading…
Reference in a new issue