mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -406,7 +406,7 @@ impl<E: EthSpec> SlasherDB<E> {
|
||||
) -> Result<(), Error> {
|
||||
// Don't update maximum if new target is less than or equal to previous. In the case of
|
||||
// no previous we *do* want to update.
|
||||
if previous_max_target.map_or(false, |prev_max| max_target <= prev_max) {
|
||||
if previous_max_target.is_some_and(|prev_max| max_target <= prev_max) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user