Rust 1.92 lints (#8567)

Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>
This commit is contained in:
Eitan Seri-Levi
2025-12-12 05:45:38 -03:00
committed by GitHub
parent 5abbdb660a
commit 556e917092
5 changed files with 2 additions and 7 deletions

View File

@@ -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");