mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -435,7 +435,7 @@ pub fn recursively_find_voting_keystores<P: AsRef<Path>>(
|
||||
&& dir_entry
|
||||
.file_name()
|
||||
.to_str()
|
||||
.map_or(false, is_voting_keystore)
|
||||
.is_some_and(is_voting_keystore)
|
||||
{
|
||||
matches.push(dir_entry.path())
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ impl TimeLatch {
|
||||
pub fn elapsed(&mut self) -> bool {
|
||||
let now = Instant::now();
|
||||
|
||||
let is_elapsed = self.0.map_or(false, |elapse_time| now > elapse_time);
|
||||
let is_elapsed = self.0.is_some_and(|elapse_time| now > elapse_time);
|
||||
|
||||
if is_elapsed || self.0.is_none() {
|
||||
self.0 = Some(now + LOG_DEBOUNCE_INTERVAL);
|
||||
|
||||
Reference in New Issue
Block a user