mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 18:11:22 +00:00
*: Apply clippy suggestions (#2540)
This commit is contained in:
@ -452,8 +452,7 @@ where
|
||||
self.upgrades
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(i, (_, h))| iter::repeat(i).zip(h.protocol_info()))
|
||||
.flatten()
|
||||
.flat_map(|(i, (_, h))| iter::repeat(i).zip(h.protocol_info()))
|
||||
.map(|(i, h)| IndexedProtoName(i, h))
|
||||
.collect::<Vec<_>>()
|
||||
.into_iter()
|
||||
|
Reference in New Issue
Block a user