From 36eae63e84f22c9973edee699d3388ee2674874e Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sat, 1 Jun 2024 21:30:23 +0200 Subject: p2p: fix cargo clippy warnings --- p2p/src/peer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p2p/src/peer') diff --git a/p2p/src/peer/mod.rs b/p2p/src/peer/mod.rs index b4cfd3a..0d42da3 100644 --- a/p2p/src/peer/mod.rs +++ b/p2p/src/peer/mod.rs @@ -124,7 +124,7 @@ impl Peer { // No need to handle the error here let shutdown_msg = - NetMsg::new(NetMsgCmd::Shutdown, &ShutdownMsg(0)).expect("pack shutdown message"); + NetMsg::new(NetMsgCmd::Shutdown, ShutdownMsg(0)).expect("pack shutdown message"); let _ = self.conn.send(shutdown_msg).await; // Force shutting down -- cgit v1.2.3