mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 13:54:44 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -1305,7 +1305,7 @@ impl BannedPeersCount {
|
||||
pub fn ip_is_banned(&self, ip: &IpAddr) -> bool {
|
||||
self.banned_peers_per_ip
|
||||
.get(ip)
|
||||
.map_or(false, |count| *count > BANNED_PEERS_PER_IP_THRESHOLD)
|
||||
.is_some_and(|count| *count > BANNED_PEERS_PER_IP_THRESHOLD)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user