Skip to content

Commit

Permalink
chore: make clippy happy (foundry-rs#7847)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 3, 2024
1 parent e159e6e commit 2e95d2f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion crates/anvil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ use foundry_config::Config;
use foundry_evm::{
constants::DEFAULT_CREATE2_DEPLOYER,
fork::{BlockchainDb, BlockchainDbMeta, SharedBackend},
revm,
revm::primitives::{BlockEnv, CfgEnv, CfgEnvWithHandlerCfg, EnvWithHandlerCfg, SpecId, TxEnv},
utils::apply_chain_and_block_specific_env_changes,
};
Expand Down
1 change: 0 additions & 1 deletion crates/anvil/src/eth/backend/mem/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use foundry_evm::{
decode::decode_console_logs,
inspectors::{LogCollector, TracingInspector},
revm::{
self,
interpreter::{CallInputs, CallOutcome, CreateInputs, CreateOutcome, Interpreter},
primitives::U256,
EvmContext,
Expand Down
1 change: 0 additions & 1 deletion crates/anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ use foundry_evm::{
decode::RevertDecoder,
inspectors::AccessListInspector,
revm::{
self,
db::CacheDB,
interpreter::InstructionResult,
primitives::{
Expand Down
1 change: 0 additions & 1 deletion crates/anvil/src/eth/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use foundry_evm::{
backend::DatabaseError,
decode::RevertDecoder,
revm::{
self,
interpreter::InstructionResult,
primitives::{EVMError, InvalidHeader},
},
Expand Down
10 changes: 3 additions & 7 deletions crates/anvil/src/evm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{fmt::Debug, sync::Arc};

use alloy_primitives::Address;
use foundry_evm::revm::{self, precompile::Precompile, ContextPrecompile, ContextPrecompiles};
use foundry_evm::revm::{precompile::Precompile, ContextPrecompile, ContextPrecompiles};
use std::{fmt::Debug, sync::Arc};

/// Object-safe trait that enables injecting extra precompiles when using
/// `anvil` as a library.
Expand Down Expand Up @@ -42,10 +41,7 @@ pub fn inject_precompiles<DB, I>(
mod tests {
use crate::{evm::inject_precompiles, PrecompileFactory};
use alloy_primitives::Address;
use foundry_evm::revm::{
self,
primitives::{address, Bytes, Precompile, PrecompileResult, SpecId},
};
use foundry_evm::revm::primitives::{address, Bytes, Precompile, PrecompileResult, SpecId};

#[test]
fn build_evm_with_extra_precompiles() {
Expand Down

0 comments on commit 2e95d2f

Please sign in to comment.