Skip to content

Commit 8a8c036

Browse files
authored
chore: update Rust toolchain to 1.92 (#797)
1 parent 34d0bc6 commit 8a8c036

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

crates/rmcp/src/model.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,25 +1545,20 @@ pub enum Role {
15451545
}
15461546

15471547
/// Tool selection mode (SEP-1577).
1548-
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
1548+
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
15491549
#[serde(rename_all = "lowercase")]
15501550
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
15511551
#[expect(clippy::exhaustive_enums, reason = "intentionally exhaustive")]
15521552
pub enum ToolChoiceMode {
15531553
/// Model decides whether to use tools
1554+
#[default]
15541555
Auto,
15551556
/// Model must use at least one tool
15561557
Required,
15571558
/// Model must not use tools
15581559
None,
15591560
}
15601561

1561-
impl Default for ToolChoiceMode {
1562-
fn default() -> Self {
1563-
Self::Auto
1564-
}
1565-
}
1566-
15671562
/// Tool choice configuration (SEP-1577).
15681563
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
15691564
#[serde(rename_all = "camelCase")]

crates/rmcp/src/transport/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use serde::{Deserialize, Serialize};
1919
use serde_json::Value;
2020
use thiserror::Error;
2121
use tokio::sync::{Mutex, RwLock};
22-
use tracing::{debug, error, warn};
22+
use tracing::{debug, warn};
2323

2424
use crate::transport::common::http_header::HEADER_MCP_PROTOCOL_VERSION;
2525

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.90"
2+
channel = "1.92"
33
components = ["rustc", "rust-std", "cargo", "clippy", "rustfmt", "rust-docs"]

0 commit comments

Comments
 (0)