mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-02 04:03:35 +00:00
Rust 1.92 lints (#8567)
Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>
This commit is contained in:
@@ -63,8 +63,7 @@ impl ForkContext {
|
||||
let current_epoch = current_slot.epoch(E::slots_per_epoch());
|
||||
let current_fork = epoch_to_forks
|
||||
.values()
|
||||
.filter(|&fork| fork.fork_epoch <= current_epoch)
|
||||
.next_back()
|
||||
.rfind(|&fork| fork.fork_epoch <= current_epoch)
|
||||
.cloned()
|
||||
.expect("should match at least genesis epoch");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user