From 584a0700ebcf453e3574747e2f48cfa7f741b942 Mon Sep 17 00:00:00 2001 From: rakita Date: Mon, 14 Oct 2024 16:50:44 +0200 Subject: [PATCH] fix clippy --- crates/revm/benches/bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/revm/benches/bench.rs b/crates/revm/benches/bench.rs index 59cc261c9f..a2f98cff98 100644 --- a/crates/revm/benches/bench.rs +++ b/crates/revm/benches/bench.rs @@ -82,7 +82,7 @@ fn transfer(c: &mut Criterion) { } fn bench_transact(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", @@ -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();