Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Feb 11, 2025
1 parent fe8e6cc commit 9155313
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bins/revme/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl MainCmd {
pub fn run(&self) -> Result<(), Error> {
match self {
Self::Statetest(cmd) => cmd.run().map_err(Into::into),
Self::EofValidation(cmd) => cmd.run().map_err(Into::into),
Self::EofValidation(cmd) => cmd.run(),
Self::Evm(cmd) => cmd.run().map_err(Into::into),
Self::Bytecode(cmd) => {
cmd.run();
Expand Down
1 change: 0 additions & 1 deletion bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ pub fn execute_test_suite(
// Create database and insert cache
let mut cache_state = revm::CacheState::new(false);
for (address, info) in unit.pre {
let code_hash = keccak256(&info.code);
#[cfg(feature = "scroll")]
let code_size = info.code.len();
let keccak_code_hash = keccak256(&info.code);
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/context/context_precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl<DB: Database> ContextPrecompiles<DB> {

impl<DB: Database> Extend<(Address, ContextPrecompile<DB>)> for ContextPrecompiles<DB> {
fn extend<T: IntoIterator<Item = (Address, ContextPrecompile<DB>)>>(&mut self, iter: T) {
self.to_mut().extend(iter.into_iter().map(Into::into))
self.to_mut().extend(iter)
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/context/evm_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ pub(crate) mod test_utils {
use crate::{
db::{CacheDB, EmptyDB},
journaled_state::JournaledState,
primitives::{address, HashSet, SpecId, B256},
primitives::{address, HashSet, SpecId},
};

/// Mock caller address.
Expand Down

0 comments on commit 9155313

Please sign in to comment.