From e9781728218d3a27384d905b64f5c53a0c96a7ee Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Sun, 22 Dec 2024 20:39:06 +0100 Subject: [PATCH] clippy --- crates/evm/evm/src/executors/strategy.rs | 2 +- crates/strategy/zksync/src/backend.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/evm/evm/src/executors/strategy.rs b/crates/evm/evm/src/executors/strategy.rs index 2a88deb3b..e27f57ce0 100644 --- a/crates/evm/evm/src/executors/strategy.rs +++ b/crates/evm/evm/src/executors/strategy.rs @@ -29,7 +29,7 @@ pub trait ExecutorStrategyContext: Debug + Send + Sync + Any { impl ExecutorStrategyContext for () { fn new_cloned(&self) -> Box { - Box::new(*self) + Box::new(()) } fn as_any_ref(&self) -> &dyn Any { diff --git a/crates/strategy/zksync/src/backend.rs b/crates/strategy/zksync/src/backend.rs index 76a9286ea..aadc55ef7 100644 --- a/crates/strategy/zksync/src/backend.rs +++ b/crates/strategy/zksync/src/backend.rs @@ -12,9 +12,8 @@ use foundry_evm_core::backend::{ BackendInner, Fork, ForkDB, FoundryEvmInMemoryDB, }; use foundry_zksync_core::{ - convert::ConvertH160, PaymasterParams, ACCOUNT_CODE_STORAGE_ADDRESS, - IMMUTABLE_SIMULATOR_STORAGE_ADDRESS, KNOWN_CODES_STORAGE_ADDRESS, L2_BASE_TOKEN_ADDRESS, - NONCE_HOLDER_ADDRESS, + convert::ConvertH160, ACCOUNT_CODE_STORAGE_ADDRESS, IMMUTABLE_SIMULATOR_STORAGE_ADDRESS, + KNOWN_CODES_STORAGE_ADDRESS, L2_BASE_TOKEN_ADDRESS, NONCE_HOLDER_ADDRESS, }; use revm::{db::CacheDB, primitives::HashSet, DatabaseRef, JournaledState}; use serde::{Deserialize, Serialize};