Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
refactor: remove extra clone (clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Koivunen committed Oct 6, 2020
1 parent 57aa9a1 commit 2f0058c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p2p/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ impl<Types: IpfsTypes> Behaviour<Types> {
let MultiaddrWithPeerId {
multiaddr: ma,
peer_id,
} = addr.clone();
} = addr;
self.kademlia.add_address(&peer_id, ma.into());
}
Ok(ret)
Expand Down

0 comments on commit 2f0058c

Please sign in to comment.