Skip to content

Commit 57fc428

Browse files
authored
chore: bump to rust 1.90.0 (#453)
1 parent aff82ed commit 57fc428

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

crates/rmcp/src/model.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ pub struct InitializeResult {
672672
pub type ServerInfo = InitializeResult;
673673
pub type ClientInfo = InitializeRequestParam;
674674

675+
#[allow(clippy::derivable_impls)]
675676
impl Default for ServerInfo {
676677
fn default() -> Self {
677678
ServerInfo {
@@ -683,6 +684,7 @@ impl Default for ServerInfo {
683684
}
684685
}
685686

687+
#[allow(clippy::derivable_impls)]
686688
impl Default for ClientInfo {
687689
fn default() -> Self {
688690
ClientInfo {

crates/rmcp/src/transport/streamable_http_client.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub enum StreamableHttpProtocolError {
6363
MissingSessionIdInResponse,
6464
}
6565

66+
#[allow(clippy::large_enum_variant)]
6667
pub enum StreamableHttpPostResponse {
6768
Accepted,
6869
Json(ServerJsonRpcMessage, Option<String>),
@@ -557,7 +558,7 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
557558
///
558559
/// impl StreamableHttpClient for MyHttpClient {
559560
/// type Error = MyError;
560-
///
561+
///
561562
/// async fn post_message(
562563
/// &self,
563564
/// _uri: Arc<str>,
@@ -567,7 +568,7 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
567568
/// ) -> Result<rmcp::transport::streamable_http_client::StreamableHttpPostResponse, rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
568569
/// todo!()
569570
/// }
570-
///
571+
///
571572
/// async fn delete_session(
572573
/// &self,
573574
/// _uri: Arc<str>,
@@ -576,7 +577,7 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
576577
/// ) -> Result<(), rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
577578
/// todo!()
578579
/// }
579-
///
580+
///
580581
/// async fn get_stream(
581582
/// &self,
582583
/// _uri: Arc<str>,
@@ -639,7 +640,7 @@ impl<C: StreamableHttpClient> StreamableHttpClientTransport<C> {
639640
///
640641
/// impl StreamableHttpClient for MyHttpClient {
641642
/// type Error = MyError;
642-
///
643+
///
643644
/// async fn post_message(
644645
/// &self,
645646
/// _uri: Arc<str>,
@@ -649,7 +650,7 @@ impl<C: StreamableHttpClient> StreamableHttpClientTransport<C> {
649650
/// ) -> Result<rmcp::transport::streamable_http_client::StreamableHttpPostResponse, rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
650651
/// todo!()
651652
/// }
652-
///
653+
///
653654
/// async fn delete_session(
654655
/// &self,
655656
/// _uri: Arc<str>,
@@ -658,7 +659,7 @@ impl<C: StreamableHttpClient> StreamableHttpClientTransport<C> {
658659
/// ) -> Result<(), rmcp::transport::streamable_http_client::StreamableHttpError<Self::Error>> {
659660
/// todo!()
660661
/// }
661-
///
662+
///
662663
/// async fn get_stream(
663664
/// &self,
664665
/// _uri: Arc<str>,

crates/rmcp/src/transport/streamable_http_server/session/local.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ impl From<SessionError> for std::io::Error {
304304
fn from(value: SessionError) -> Self {
305305
match value {
306306
SessionError::Io(io) => io,
307-
_ => std::io::Error::new(std::io::ErrorKind::Other, format!("Session error: {value}")),
307+
_ => std::io::Error::other(format!("Session error: {value}")),
308308
}
309309
}
310310
}
@@ -687,6 +687,7 @@ impl LocalSessionHandle {
687687

688688
pub type SessionTransport = WorkerTransport<LocalSessionWorker>;
689689

690+
#[allow(clippy::large_enum_variant)]
690691
#[derive(Debug, Error)]
691692
pub enum LocalSessionWorkerError {
692693
#[error("transport terminated")]

crates/rmcp/tests/test_elicitation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,7 @@ async fn test_elicitation_examples_compile() {
14581458
use serde::{Deserialize, Serialize};
14591459

14601460
// Example from trait documentation
1461+
#[allow(dead_code)]
14611462
#[derive(Serialize, Deserialize, JsonSchema)]
14621463
struct UserProfile {
14631464
name: String,

examples/clients/src/git_stdio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use rmcp::{
77
use tokio::process::Command;
88
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
99

10+
#[allow(clippy::result_large_err)]
1011
#[tokio::main]
1112
async fn main() -> Result<(), RmcpError> {
1213
// Initialize logging

examples/servers/src/complex_auth_sse.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,6 @@ struct TokenRequest {
207207
refresh_token: String,
208208
}
209209

210-
#[derive(Debug, Deserialize, Serialize)]
211-
struct UserInfo {
212-
sub: String,
213-
name: String,
214-
email: String,
215-
username: String,
216-
}
217-
218210
fn generate_random_string(length: usize) -> String {
219211
rand::rng()
220212
.sample_iter(&Alphanumeric)

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.85"
2+
channel = "1.90"
33
components = ["rustc", "rust-std", "cargo", "clippy", "rustfmt", "rust-docs"]

0 commit comments

Comments
 (0)