aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/peer
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-01 21:30:23 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-01 21:30:23 +0200
commit36eae63e84f22c9973edee699d3388ee2674874e (patch)
tree902e52e9635dc530fa3f35e634050382ee0b26ac /p2p/src/peer
parent9dd15eaa392c9f160541fb79505a61b28e56d10a (diff)
p2p: fix cargo clippy warnings
Diffstat (limited to 'p2p/src/peer')
-rw-r--r--p2p/src/peer/mod.rs2
1 files changed, 1 insertions, 1 deletions
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