Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Oct 14, 2024
1 parent 18dc91d commit 584a070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/revm/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn transfer(c: &mut Criterion) {
}

fn bench_transact<EXT>(g: &mut BenchmarkGroup<'_, WallTime>, evm: &mut Evm<'_, EXT, BenchmarkDB>) {
let state = match evm.context.evm.db.0 {
let state = match evm.context.evm.db.bytecode {
Bytecode::LegacyRaw(_) => "raw",
Bytecode::LegacyAnalyzed(_) => "analysed",
Bytecode::Eof(_) => "eof",
Expand All @@ -96,7 +96,7 @@ fn bench_eval(g: &mut BenchmarkGroup<'_, WallTime>, evm: &mut Evm<'static, (), B
g.bench_function("eval", |b| {
let contract = Contract {
input: evm.context.evm.env.tx.data.clone(),
bytecode: to_analysed(evm.context.evm.db.0.clone()),
bytecode: to_analysed(evm.context.evm.db.bytecode.clone()),
..Default::default()
};
let mut shared_memory = SharedMemory::new();
Expand Down

0 comments on commit 584a070

Please sign in to comment.