Skip to content

Commit

Permalink
chore: fix some warnings (bluealloy#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Apr 16, 2024
1 parent 72356e3 commit cc1b9f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
1 change: 1 addition & 0 deletions crates/interpreter/src/function_stack.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion crates/interpreter/src/instructions/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions crates/interpreter/src/instructions/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
14 changes: 4 additions & 10 deletions crates/revm/src/context/evm_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,12 @@ impl<DB: Database> EvmContext<DB> {
/// 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");
Expand Down Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion crates/revm/src/db/states/bundle_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cc1b9f7

Please sign in to comment.