chore: fix all clippy warnings across workspace (#746)

This commit is contained in:
Dale Seo 2026-03-11 14:12:00 -04:00 • committed by GitHub
commit 8700e5c920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 743 additions and 793 deletions

View file

@ -18,7 +18,7 @@ use rmcp::transport::{
StreamableHttpServerConfig,
streamable_http_server::{session::local::LocalSessionManager, tower::StreamableHttpService},
};
use serde::{Deserialize, Serialize};
use serde::Deserialize;
use serde_json::Value;
use tokio::sync::RwLock;
use tower_http::cors::{Any, CorsLayer};
@ -35,8 +35,8 @@ const BIND_ADDRESS: &str = "127.0.0.1:3000";
/// In-memory authorization code record
#[derive(Clone, Debug)]
struct AuthCodeRecord {
client_id: String,
redirect_uri: String,
_client_id: String,
_redirect_uri: String,
expires_at: SystemTime,
}
@ -368,8 +368,8 @@ async fn handle_authorize(
codes.insert(
code.clone(),
AuthCodeRecord {
client_id: client_id_url,
redirect_uri: redirect_uri.to_string(),
_client_id: client_id_url,
_redirect_uri: redirect_uri.to_string(),
expires_at,
},
);

View file

@ -1,7 +1,6 @@
#![allow(dead_code)]
use std::{any::Any, sync::Arc};
use chrono::Utc;
use rmcp::{
ErrorData as McpError, RoleServer, ServerHandler,
handler::server::{
@ -12,14 +11,11 @@ use rmcp::{
prompt, prompt_handler, prompt_router, schemars,
service::RequestContext,
task_handler,
task_manager::{
OperationDescriptor, OperationMessage, OperationProcessor, OperationResultTransport,
},
task_manager::{OperationProcessor, OperationResultTransport},
tool, tool_handler, tool_router,
};
use serde_json::json;
use tokio::sync::Mutex;
use tracing::info;
struct ToolCallOperationResult {
id: String,

View file

@ -5,7 +5,7 @@
//! - Use `#[schemars(inline)]` to ensure the enum is inlined in the schema.
//! - Use `#[schemars(extend("type" = "string"))]` to manually add the required type field, since `schemars` does not provide it for enums.
//! - Optionally, use `#[schemars(title = "...")]` to provide titles for enum variants.
//! For more details, see: https://docs.rs/schemars/latest/schemars/
//! For more details, see: https://docs.rs/schemars/latest/schemars/
use std::{
fmt::{Display, Formatter},
sync::Arc,