Skip to content

Commit 5a3638f

Browse files
committed
chore: fix clippy warning
1 parent f5dc4c1 commit 5a3638f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/rust-mcp-transport/src/client_sse.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,8 @@ where
225225
*sse_task_lock = Some(sse_task_handle);
226226

227227
// 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-
};
228+
let err =
229+
|| std::io::Error::other("Failed to receive 'messages' endpoint from the server.");
234230
let post_url = endpoint_event_rx
235231
.await
236232
.map_err(|_| err())?

0 commit comments

Comments
 (0)