mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 01:21:21 +00:00
*: Fix newly raised clippy warnings (#3106)
Fixed minor issues raised by clippy to improve correctness and readablitity.
This commit is contained in:
@ -298,8 +298,8 @@ impl NetworkBehaviour for Relay {
|
||||
// Deny if it exceeds `max_reservations`.
|
||||
|| self
|
||||
.reservations
|
||||
.iter()
|
||||
.map(|(_, cs)| cs.len())
|
||||
.values()
|
||||
.map(|cs| cs.len())
|
||||
.sum::<usize>()
|
||||
>= self.config.max_reservations
|
||||
// Deny if it exceeds the allowed rate of reservations.
|
||||
|
Reference in New Issue
Block a user