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

@@ -2,7 +2,7 @@
use eth2_wallet::Error as WalletError;
use eth2_wallet::{Uuid, Wallet};
use std::fs::{copy as copy_file, remove_file, File};
use std::fs::{File, copy as copy_file, remove_file};
use std::io;
use std::path::{Path, PathBuf};

View File

@@ -1,6 +1,6 @@
use crate::{
filesystem::{read, update},
Error,
filesystem::{read, update},
};
use eth2_wallet::{Uuid, ValidatorKeystores, Wallet};
use lockfile::Lockfile;

View File

@@ -1,12 +1,12 @@
use crate::{
filesystem::{create, Error as FilesystemError},
LockedWallet,
filesystem::{Error as FilesystemError, create},
};
use eth2_wallet::{bip39::Mnemonic, Error as WalletError, Uuid, Wallet, WalletBuilder};
use eth2_wallet::{Error as WalletError, Uuid, Wallet, WalletBuilder, bip39::Mnemonic};
use lockfile::LockfileError;
use std::collections::HashMap;
use std::ffi::OsString;
use std::fs::{create_dir_all, read_dir, File};
use std::fs::{File, create_dir_all, read_dir};
use std::io;
use std::path::{Path, PathBuf};