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

@@ -581,9 +581,9 @@ mod tests {
use store::BitVector;
use tree_hash::TreeHash;
use types::{
test_utils::{generate_deterministic_keypair, test_random_instance},
Attestation, AttestationBase, AttestationElectra, FixedBytesExtended, Fork, Hash256,
SyncCommitteeMessage,
test_utils::{generate_deterministic_keypair, test_random_instance},
};
type E = types::MainnetEthSpec;
@@ -647,11 +647,11 @@ mod tests {
fn unset_attestation_bit(a: &mut Attestation<E>, i: usize) {
match a {
Attestation::Base(ref mut att) => att
Attestation::Base(att) => att
.aggregation_bits
.set(i, false)
.expect("should unset aggregation bit"),
Attestation::Electra(ref mut att) => att
Attestation::Electra(att) => att
.aggregation_bits
.set(i, false)
.expect("should unset aggregation bit"),