Skip to content

Commit 3295a39

Browse files
committed
fix: drop unused AsyncReadExt and update integration test
1 parent b3858c0 commit 3295a39

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/rmcp/src/transport/async_rw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ mod test {
619619
#[cfg(feature = "server")]
620620
#[tokio::test]
621621
async fn receive_recovers_from_parse_error() {
622-
use tokio::io::{AsyncReadExt, AsyncWriteExt};
622+
use tokio::io::AsyncWriteExt;
623623

624624
use crate::{RoleServer, transport::Transport};
625625

crates/rmcp/tests/test_client_initialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async fn test_client_init_handles_jsonrpc_error() {
3030

3131
let error_msg = ServerJsonRpcMessage::Error(JsonRpcError {
3232
jsonrpc: JsonRpcVersion2_0,
33-
id: RequestId::Number(1),
33+
id: Some(RequestId::Number(1)),
3434
error: ErrorData {
3535
code: ErrorCode(-32600),
3636
message: Cow::Borrowed("Invalid Request"),

0 commit comments

Comments
 (0)