Skip to content

Commit

Permalink
Clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed May 3, 2024
1 parent 726631a commit 999d1ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,14 @@ impl EVM {
}
}

#[allow(clippy::useless_asref)]
fn run_env(&mut self, env: RevmEnv, is_static: bool) -> PyResult<RevmExecutionResult> {
self.context.env = Box::new(env);
let evm_context: EvmContext<DB> =
replace(&mut self.context, EvmContext::new(DB::new_memory()));
let (result, evm_context) =
call_evm(evm_context, self.handler_cfg, self.tracing, is_static);
self.context = evm_context;
self.result = result.as_ref().map(|r| r.clone()).ok();
self.result = result.as_ref().ok().cloned();
result
}
}

0 comments on commit 999d1ca

Please sign in to comment.