Skip to content

Commit

Permalink
more clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ncitron committed Feb 14, 2025
1 parent 865fe07 commit 1a9ec4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/execution/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ impl<N: NetworkSpec, R: ExecutionRpc<N>> Evm<N, R> {
}

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)
Expand Down
1 change: 1 addition & 0 deletions core/src/execution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ impl<N: NetworkSpec, R: ExecutionRpc<N>> ExecutionClient<N, R> {
/// 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<u8>]) -> B256 {
#[allow(clippy::ptr_arg)]
fn noop_encoder(item: &Vec<u8>, buffer: &mut Vec<u8>) {
buffer.extend_from_slice(item);
}
Expand Down

0 comments on commit 1a9ec4f

Please sign in to comment.