Fix Rust 1.88 clippy errors & execution engine tests (#7657)

Fix Rust 1.88 clippy errors.
This commit is contained in:
Jimmy Chen
2025-06-28 04:21:17 +10:00
committed by GitHub
parent 9b1f3ed9d1
commit 83cad25d98
6 changed files with 21 additions and 21 deletions

View File

@@ -342,7 +342,7 @@ impl MonitoredValidator {
// Prune
while summaries.len() > HISTORIC_EPOCHS {
if let Some(key) = summaries.iter().map(|(epoch, _)| *epoch).min() {
if let Some(key) = summaries.keys().copied().min() {
summaries.remove(&key);
}
}