Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Feb 27, 2022
1 parent b092da0 commit 21ad2ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bins/revm-test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion bins/revme/src/statetest/trace.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions crates/revm/src/inspector.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
4 changes: 1 addition & 3 deletions crates/revm/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ pub struct CreateInputs {
pub gas_limit: u64,
}

pub struct CreateData {

}
pub struct CreateData {}

#[derive(Clone, Debug)]
pub enum TransactTo {
Expand Down

0 comments on commit 21ad2ed

Please sign in to comment.