Skip to content

Commit

Permalink
fix: clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Jan 18, 2025
1 parent 89d7bdd commit 61f643e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions crates/executor/client/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ impl<'a> DatabaseRef for TrieDB<'a> {

/// Get account code by its hash.
fn code_by_hash_ref(&self, hash: B256) -> Result<Bytecode, Self::Error> {
Ok(self.bytecode_by_hash
.get(&hash)
.map(|code| (*code).clone())
.unwrap())
Ok(self.bytecode_by_hash.get(&hash).map(|code| (*code).clone()).unwrap())
}

/// Get storage value of address at index.
Expand Down
2 changes: 1 addition & 1 deletion crates/executor/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use reth_evm_optimism::OpExecutorProvider;
use reth_execution_types::ExecutionOutcome;
use reth_optimism_consensus::validate_block_post_execution as validate_block_post_execution_optimism;
use reth_primitives::{proofs, Block, BlockWithSenders, Bloom, Header, Receipt, Receipts, Request};
use revm::{db::{CacheDB, WrapDatabaseRef}, Database};
use revm::{db::WrapDatabaseRef, Database};
use revm_primitives::{address, U256};

/// Chain ID for Ethereum Mainnet.
Expand Down

0 comments on commit 61f643e

Please sign in to comment.