mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
Rust 1.85 lints (#7019)
N/A 2 changes: 1. Replace Option::map_or(true, ...) with is_none_or(...) 2. Remove unnecessary `Into::into` blocks where the type conversion is apparent from the types
This commit is contained in:
@@ -628,7 +628,7 @@ impl<E: EthSpec> ValidatorMonitor<E> {
|
||||
// the proposer shuffling cache lock when there are lots of missed blocks.
|
||||
if proposers_per_epoch
|
||||
.as_ref()
|
||||
.map_or(true, |(_, cached_epoch)| *cached_epoch != slot_epoch)
|
||||
.is_none_or(|(_, cached_epoch)| *cached_epoch != slot_epoch)
|
||||
{
|
||||
proposers_per_epoch = self
|
||||
.get_proposers_by_epoch_from_cache(
|
||||
|
||||
Reference in New Issue
Block a user