From 1a9ec4f0e532c5ab98394a45a3fd1b64a5ae9fb8 Mon Sep 17 00:00:00 2001 From: Noah Citron Date: Fri, 14 Feb 2025 16:24:09 -0500 Subject: [PATCH] more clippy --- core/src/execution/evm.rs | 3 --- core/src/execution/mod.rs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/execution/evm.rs b/core/src/execution/evm.rs index 65b12bc0..4cd82944 100644 --- a/core/src/execution/evm.rs +++ b/core/src/execution/evm.rs @@ -101,9 +101,6 @@ impl> Evm { } async fn get_env(&self, tx: &N::TransactionRequest, tag: BlockTag) -> Env { - let mut env = Env::default(); - env.tx = N::tx_env(tx); - let block = self .execution .get_block(tag, false) diff --git a/core/src/execution/mod.rs b/core/src/execution/mod.rs index d570c26d..4c862bc6 100644 --- a/core/src/execution/mod.rs +++ b/core/src/execution/mod.rs @@ -494,6 +494,7 @@ impl> ExecutionClient { /// Compute a trie root of a collection of encoded items. /// Ref: https://github.com/alloy-rs/trie/blob/main/src/root.rs. fn ordered_trie_root(items: &[Vec]) -> B256 { + #[allow(clippy::ptr_arg)] fn noop_encoder(item: &Vec, buffer: &mut Vec) { buffer.extend_from_slice(item); }