Skip to content

Commit 56347d8

Browse files
committed
refactor type to address clippy warning
1 parent 4d9cc16 commit 56347d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/rmcp/tests/test_notification.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ async fn test_server_notification() -> anyhow::Result<()> {
9696
Ok(())
9797
}
9898

99+
type CustomServerPayload = (String, Option<serde_json::Value>);
100+
99101
struct CustomServer {
100102
receive_signal: Arc<Notify>,
101-
payload: Arc<Mutex<Option<(String, Option<serde_json::Value>)>>>,
103+
payload: Arc<Mutex<Option<CustomServerPayload>>>,
102104
}
103105

104106
impl ServerHandler for CustomServer {

0 commit comments

Comments
 (0)