mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-07 03:11:07 +00:00
Clean up sc-network (#9761)
* Clean up sc-network - Avoid using clone() for the Copy type `PeerId`. - Use `find_map` for `filter_map` and `next`. - Use `Self`. * More on Copy types * Cargo +nightly fmt --all * More .. * fmt * Revert vec![default_notif_handshake_message]
This commit is contained in:
1 parent
0472a43855
commit
2562f8c65e
37 files changed
+475
-526
No files matched your search
@@ -199,7 +199,7 @@ mod tests {
|
||||
let multiaddr1 = "/ip6/2001:db8:0:0:0:0:0:2/tcp/30333"
|
||||
.parse::<Multiaddr>()
|
||||
.unwrap()
|
||||
.with(Protocol::P2p(peer_id.clone().into()));
|
||||
.with(Protocol::P2p(peer_id.into()));
|
||||
let multiaddr2 = "/ip6/2002:db8:0:0:0:0:0:2/tcp/30133"
|
||||
.parse::<Multiaddr>()
|
||||
.unwrap()
|
||||
|
||||
Reference in new issue
Block a user