mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41: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:
@ -107,11 +107,11 @@ impl ProtocolId {
|
||||
let protocol_id = match kind {
|
||||
PeerKind::Gossipsubv1_1 => match prefix {
|
||||
true => format!("/{}/{}", id, "1.1.0"),
|
||||
false => format!("{}", id),
|
||||
false => format!("{id}"),
|
||||
},
|
||||
PeerKind::Gossipsub => match prefix {
|
||||
true => format!("/{}/{}", id, "1.0.0"),
|
||||
false => format!("{}", id),
|
||||
false => format!("{id}"),
|
||||
},
|
||||
PeerKind::Floodsub => format!("/{}/{}", "floodsub", "1.0.0"),
|
||||
// NOTE: This is used for informing the behaviour of unsupported peers. We do not
|
||||
|
Reference in New Issue
Block a user