diff --git a/bins/revm-test/src/main.rs b/bins/revm-test/src/main.rs index 1d2a5dcee8..167ff55502 100644 --- a/bins/revm-test/src/main.rs +++ b/bins/revm-test/src/main.rs @@ -21,14 +21,14 @@ pub fn simple_example() { let mut elapsed = std::time::Duration::ZERO; let mut times = Vec::new(); - for _ in 0..10 { + for _ in 0..30 { let timer = Instant::now(); let (_, _, _, _, _) = evm.transact(); let i = timer.elapsed(); times.push(i); elapsed += i; } - println!("elapsed: {:?}", elapsed / 10); + println!("elapsed: {:?}", elapsed / 30); for (i, time) in times.iter().enumerate() { println!("{}: {:?}", i, time); } diff --git a/bins/revme/src/statetest/trace.rs b/bins/revme/src/statetest/trace.rs index 918bddb01b..b5611da755 100644 --- a/bins/revme/src/statetest/trace.rs +++ b/bins/revme/src/statetest/trace.rs @@ -1,7 +1,7 @@ use bytes::Bytes; use primitive_types::H160; pub use revm::Inspector; -use revm::{opcode, spec_opcode_gas, Database, EVMData, Gas, Return, CallInputs, CreateInputs}; +use revm::{opcode, spec_opcode_gas, CallInputs, CreateInputs, Database, EVMData, Gas, Return}; #[derive(Clone)] pub struct CustomPrintTracer { diff --git a/crates/revm/src/inspector.rs b/crates/revm/src/inspector.rs index 3b65059ce4..9d06dc9868 100644 --- a/crates/revm/src/inspector.rs +++ b/crates/revm/src/inspector.rs @@ -1,9 +1,7 @@ use bytes::Bytes; use primitive_types::H160; -use crate::{ - evm_impl::EVMData, Database, Gas, Interpreter, Return, CallInputs, CreateInputs, -}; +use crate::{evm_impl::EVMData, CallInputs, CreateInputs, Database, Gas, Interpreter, Return}; use auto_impl::auto_impl; #[auto_impl(&mut, Box)] diff --git a/crates/revm/src/models.rs b/crates/revm/src/models.rs index 8047ae6df1..3356838a5b 100644 --- a/crates/revm/src/models.rs +++ b/crates/revm/src/models.rs @@ -84,9 +84,7 @@ pub struct CreateInputs { pub gas_limit: u64, } -pub struct CreateData { - -} +pub struct CreateData {} #[derive(Clone, Debug)] pub enum TransactTo {