mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-19 13:01:22 +00:00
chore: Implement latest clippy warnings (#3220)
As I do frequently, I corrected for the latest clippy warnings. This will make sure the CI won't complain in the future. We could automate this btw and maybe run the nightly version of clippy.
This commit is contained in:
@ -103,10 +103,7 @@ fn strip_peer_id(addr: &mut Multiaddr) {
|
||||
Some(Protocol::P2p(peer_id)) => {
|
||||
let mut addr = Multiaddr::empty();
|
||||
addr.push(Protocol::P2p(peer_id));
|
||||
println!(
|
||||
"removing peer id {} so this address can be dialed by rust-libp2p",
|
||||
addr
|
||||
);
|
||||
println!("removing peer id {addr} so this address can be dialed by rust-libp2p");
|
||||
}
|
||||
Some(other) => addr.push(other),
|
||||
_ => {}
|
||||
|
Reference in New Issue
Block a user