mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -124,7 +124,7 @@ impl BackoffStorage {
|
||||
pub(crate) fn is_backoff_with_slack(&self, topic: &TopicHash, peer: &PeerId) -> bool {
|
||||
self.backoffs
|
||||
.get(topic)
|
||||
.map_or(false, |m| m.contains_key(peer))
|
||||
.is_some_and(|m| m.contains_key(peer))
|
||||
}
|
||||
|
||||
pub(crate) fn get_backoff_time(&self, topic: &TopicHash, peer: &PeerId) -> Option<Instant> {
|
||||
|
||||
Reference in New Issue
Block a user