We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5dc4c1 commit 5a3638fCopy full SHA for 5a3638f
crates/rust-mcp-transport/src/client_sse.rs
@@ -225,12 +225,8 @@ where
225
*sse_task_lock = Some(sse_task_handle);
226
227
// Await the first SSE message, expected to receive messages endpoint from he server
228
- let err = || {
229
- std::io::Error::new(
230
- std::io::ErrorKind::Other,
231
- "Failed to receive 'messages' endpoint from the server.",
232
- )
233
- };
+ let err =
+ || std::io::Error::other("Failed to receive 'messages' endpoint from the server.");
234
let post_url = endpoint_event_rx
235
.await
236
.map_err(|_| err())?
0 commit comments