Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
CHr15F0x committed Nov 2, 2023
1 parent bb0fa4b commit 47021ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/p2p/src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ impl MainLoop {
match &event {
SwarmEvent::NewListenAddr { address, .. } => {
let my_peerid = *self.swarm.local_peer_id();
let address = address.clone().with(Protocol::P2p(my_peerid.into()));
let address = address.clone().with(Protocol::P2p(my_peerid));

tracing::debug!(%address, "New listen");
}
Expand Down
2 changes: 1 addition & 1 deletion crates/p2p/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async fn periodic_bootstrap() {
let mut peer2 = TestPeer::new(periodic_cfg);

let mut boot_addr = boot.start_listening().await.unwrap();
boot_addr.push(Protocol::P2p(boot.peer_id.into()));
boot_addr.push(Protocol::P2p(boot.peer_id));

let addr1 = peer1.start_listening().await.unwrap();
let addr2 = peer2.start_listening().await.unwrap();
Expand Down

0 comments on commit 47021ba

Please sign in to comment.