Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout committed Nov 27, 2024
1 parent 2a99ba2 commit 6665219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/evm-block-extractor/tests/tests/block_extractor_it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ async fn test_extractor_collect_blocks() {
let evmc_genesis_balances = evmc_genesis_balances
.into_iter()
.map(|(address, balance)| AccountBalance {
address: address,
balance: balance,
address,
balance,
})
.collect::<Vec<_>>();

Expand Down
4 changes: 2 additions & 2 deletions src/register-evm-agent/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ impl ReserveArgs {
}

/// Parse an existing wallet
pub fn get_wallet<'a>(signing_key: &str) -> Result<LocalWallet> {
pub fn get_wallet(signing_key: &str) -> Result<LocalWallet> {
let key_bytes = alloy::hex::decode(signing_key)?;
let wallet = LocalWallet::from_slice(&key_bytes)?;
Ok(wallet)
}

/// generate a brand new wallet
pub fn generate_wallet<'a>() -> Result<LocalWallet> {
pub fn generate_wallet() -> Result<LocalWallet> {
let wallet = LocalWallet::random();
let signer = wallet.credential();
let signer_hex = alloy::hex::encode(signer.to_bytes());
Expand Down

0 comments on commit 6665219

Please sign in to comment.