Skip to content

Commit 069b7a4

Browse files
authored
fix: soft depricate CustomResult variants to supress warnings (#57)
1 parent 137a22e commit 069b7a4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 [YOUR NAME]
3+
Copyright (c) 2025 Rust MCP Stack (rust-mcp-schema)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/generated_schema/2024_11_05/mcp_schema.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
///
77
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
88
/// Hash : eb4abdf2bb91e0d5afd94510741eadd416982350
9-
/// Generated at : 2025-03-22 09:38:48
9+
/// Generated at : 2025-03-23 16:07:00
1010
/// ----------------------------------------------------------------------------
1111
///
1212
/// MCP Protocol Version

src/generated_schema/2024_11_05/schema_utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ impl FromStr for ClientJsonrpcResponse {
571571
#[serde(untagged)]
572572
pub enum ResultFromClient {
573573
ClientResult(ClientResult),
574-
#[deprecated(since = "0.1.8", note = "Use `ClientResult::Result` with extra attributes instead.")]
574+
/// **Deprecated**: Use `ClientResult::Result` with extra attributes instead.
575575
CustomResult(serde_json::Value),
576576
}
577577

@@ -1075,7 +1075,7 @@ impl FromStr for ServerJsonrpcResponse {
10751075
#[serde(untagged)]
10761076
pub enum ResultFromServer {
10771077
ServerResult(ServerResult),
1078-
#[deprecated(since = "0.1.8", note = "Use `ServerResult::Result` with extra attributes instead.")]
1078+
/// **Deprecated**: Use `ServerResult::Result` with extra attributes instead.
10791079
CustomResult(serde_json::Value),
10801080
}
10811081

src/generated_schema/draft/mcp_schema.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
///
77
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
88
/// Hash : eb4abdf2bb91e0d5afd94510741eadd416982350
9-
/// Generated at : 2025-03-22 09:38:49
9+
/// Generated at : 2025-03-23 16:07:01
1010
/// ----------------------------------------------------------------------------
1111
///
1212
/// MCP Protocol Version

src/generated_schema/draft/schema_utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ impl FromStr for ClientJsonrpcResponse {
571571
#[serde(untagged)]
572572
pub enum ResultFromClient {
573573
ClientResult(ClientResult),
574-
#[deprecated(since = "0.1.8", note = "Use `ClientResult::Result` with extra attributes instead.")]
574+
/// **Deprecated**: Use `ClientResult::Result` with extra attributes instead.
575575
CustomResult(serde_json::Value),
576576
}
577577

@@ -1075,7 +1075,7 @@ impl FromStr for ServerJsonrpcResponse {
10751075
#[serde(untagged)]
10761076
pub enum ResultFromServer {
10771077
ServerResult(ServerResult),
1078-
#[deprecated(since = "0.1.8", note = "Use `ServerResult::Result` with extra attributes instead.")]
1078+
/// **Deprecated**: Use `ServerResult::Result` with extra attributes instead.
10791079
CustomResult(serde_json::Value),
10801080
}
10811081

0 commit comments

Comments
 (0)