diff --git a/crates/interpreter/src/function_stack.rs b/crates/interpreter/src/function_stack.rs index ef786cd662..371a66d436 100644 --- a/crates/interpreter/src/function_stack.rs +++ b/crates/interpreter/src/function_stack.rs @@ -1,4 +1,5 @@ use std::vec::Vec; + /// Function return frame. /// Needed information for returning from a function. #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash)] diff --git a/crates/interpreter/src/instructions/stack.rs b/crates/interpreter/src/instructions/stack.rs index fa6c1be91c..dfd2a58b06 100644 --- a/crates/interpreter/src/instructions/stack.rs +++ b/crates/interpreter/src/instructions/stack.rs @@ -90,7 +90,7 @@ mod test { use crate::{ opcode::{make_instruction_table, DUPN, EXCHANGE, SWAPN}, primitives::{Bytecode, Bytes, PragueSpec}, - DummyHost, Gas, InstructionResult, Interpreter, + DummyHost, Gas, InstructionResult, }; #[test] diff --git a/crates/interpreter/src/instructions/system.rs b/crates/interpreter/src/instructions/system.rs index a5cec5368f..477d407909 100644 --- a/crates/interpreter/src/instructions/system.rs +++ b/crates/interpreter/src/instructions/system.rs @@ -164,8 +164,8 @@ mod test { use super::*; use crate::{ opcode::{make_instruction_table, RETURNDATALOAD}, - primitives::{bytes, Bytecode, PragueSpec, U256}, - DummyHost, Gas, Interpreter, + primitives::{bytes, Bytecode, PragueSpec}, + DummyHost, Gas, }; #[test] diff --git a/crates/revm/src/context/evm_context.rs b/crates/revm/src/context/evm_context.rs index 84b1c4ff13..a313226bcf 100644 --- a/crates/revm/src/context/evm_context.rs +++ b/crates/revm/src/context/evm_context.rs @@ -223,16 +223,12 @@ impl EvmContext { /// Test utilities for the [`EvmContext`]. #[cfg(any(test, feature = "test-utils"))] pub(crate) mod test_utils { - use revm_interpreter::TransferValue; - use super::*; use crate::{ db::{CacheDB, EmptyDB}, journaled_state::JournaledState, - primitives::{address, Address, Bytes, Env, HashSet, SpecId, B256, U256}, - InnerEvmContext, + primitives::{address, SpecId, B256}, }; - use std::boxed::Box; /// Mock caller address. pub const MOCK_CALLER: Address = address!("0000000000000000000000000000000000000000"); @@ -310,15 +306,13 @@ pub(crate) mod test_utils { #[cfg(test)] mod tests { use super::*; - use test_utils::*; - use crate::{ db::{CacheDB, EmptyDB}, - interpreter::InstructionResult, - primitives::{address, Bytecode, Bytes, Env, U256}, - Frame, FrameOrResult, JournalEntry, + primitives::{address, Bytecode}, + Frame, JournalEntry, }; use std::boxed::Box; + use test_utils::*; // Tests that the `EVMContext::make_call_frame` function returns an error if the // call stack is too deep. diff --git a/crates/revm/src/db/states/bundle_state.rs b/crates/revm/src/db/states/bundle_state.rs index 0b5a6da573..5f189041d9 100644 --- a/crates/revm/src/db/states/bundle_state.rs +++ b/crates/revm/src/db/states/bundle_state.rs @@ -697,7 +697,6 @@ impl BundleState { mod tests { use super::*; use crate::{db::StorageWithOriginalValues, TransitionAccount}; - use revm_interpreter::primitives::KECCAK_EMPTY; #[test] fn transition_states() {