Update Rust Edition to 2024 (#7766)

* #7749

Thanks @dknopik and @michaelsproul for your help!
This commit is contained in:
chonghe
2025-08-13 11:04:31 +08:00
committed by GitHub
parent bd6b8b6a65
commit 522bd9e9c6
468 changed files with 3594 additions and 3396 deletions

View File

@@ -261,8 +261,8 @@ impl DoppelgangerService {
continue;
}
if let Some(slot) = slot_clock.now() {
if let Err(e) = service
if let Some(slot) = slot_clock.now()
&& let Err(e) = service
.detect_doppelgangers::<E, _, _, _, _>(
slot,
&get_index,
@@ -270,12 +270,11 @@ impl DoppelgangerService {
&mut shutdown_func,
)
.await
{
error!(
error = ?e,
"Error during doppelganger detection"
);
}
{
error!(
error = ?e,
"Error during doppelganger detection"
);
}
}
},
@@ -603,8 +602,8 @@ mod test {
use std::future;
use std::time::Duration;
use types::{
test_utils::{SeedableRng, TestRandom, XorShiftRng},
MainnetEthSpec,
test_utils::{SeedableRng, TestRandom, XorShiftRng},
};
use validator_store::DoppelgangerStatus;