From 1cfb4d17eec46d7ce92f3661b9af5c0ff8b2ec20 Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Thu, 9 Apr 2026 11:32:55 -0400 Subject: [PATCH] chore: update Rust toolchain to 1.92 --- crates/rmcp/src/model.rs | 9 ++------- crates/rmcp/src/transport/auth.rs | 2 +- rust-toolchain.toml | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/crates/rmcp/src/model.rs b/crates/rmcp/src/model.rs index 001f4b600..dbfd5ae62 100644 --- a/crates/rmcp/src/model.rs +++ b/crates/rmcp/src/model.rs @@ -1545,12 +1545,13 @@ pub enum Role { } /// Tool selection mode (SEP-1577). -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)] #[serde(rename_all = "lowercase")] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[expect(clippy::exhaustive_enums, reason = "intentionally exhaustive")] pub enum ToolChoiceMode { /// Model decides whether to use tools + #[default] Auto, /// Model must use at least one tool Required, @@ -1558,12 +1559,6 @@ pub enum ToolChoiceMode { None, } -impl Default for ToolChoiceMode { - fn default() -> Self { - Self::Auto - } -} - /// Tool choice configuration (SEP-1577). #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)] #[serde(rename_all = "camelCase")] diff --git a/crates/rmcp/src/transport/auth.rs b/crates/rmcp/src/transport/auth.rs index 3f9b06e3d..34674df76 100644 --- a/crates/rmcp/src/transport/auth.rs +++ b/crates/rmcp/src/transport/auth.rs @@ -19,7 +19,7 @@ use serde::{Deserialize, Serialize}; use serde_json::Value; use thiserror::Error; use tokio::sync::{Mutex, RwLock}; -use tracing::{debug, error, warn}; +use tracing::{debug, warn}; use crate::transport::common::http_header::HEADER_MCP_PROTOCOL_VERSION; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 0968bb9dd..f04d1f29b 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.90" +channel = "1.92" components = ["rustc", "rust-std", "cargo", "clippy", "rustfmt", "rust-docs"]