Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some warnings #1305

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading