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

@@ -1,4 +1,4 @@
use crate::{common::vc_http_client, DumpConfig};
use crate::{DumpConfig, common::vc_http_client};
use clap::{Arg, ArgAction, ArgMatches, Command};
use clap_utils::FLAG_HEADER;
@@ -302,7 +302,7 @@ mod test {
sync::Arc,
};
use types::{ChainSpec, MainnetEthSpec};
use validator_http_api::{test_utils::ApiTester, Config as HttpConfig};
use validator_http_api::{Config as HttpConfig, test_utils::ApiTester};
use zeroize::Zeroizing;
type E = MainnetEthSpec;
@@ -533,13 +533,17 @@ mod test {
let beacon_exit_epoch = current_epoch + 1 + max_seed_lookahead;
let beacon_withdrawable_epoch = beacon_exit_epoch + min_withdrawability_delay;
assert!(validator_exit_epoch
.iter()
.all(|&epoch| epoch == beacon_exit_epoch));
assert!(
validator_exit_epoch
.iter()
.all(|&epoch| epoch == beacon_exit_epoch)
);
assert!(validator_withdrawable_epoch
.iter()
.all(|&epoch| epoch == beacon_withdrawable_epoch));
assert!(
validator_withdrawable_epoch
.iter()
.all(|&epoch| epoch == beacon_withdrawable_epoch)
);
if result.is_ok() {
return TestResult { result: Ok(()) };