Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Dec 21, 2024
1 parent 22e704c commit b83bf04
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion crates/cheatcodes/src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub trait CheatcodeInspectorStrategyContext: Debug + Send + Sync + Any {

impl CheatcodeInspectorStrategyContext for () {
fn new_cloned(&self) -> Box<dyn CheatcodeInspectorStrategyContext> {
Box::new(self.clone())
Box::new(*self)
}

fn as_any_mut(&mut self) -> &mut dyn Any {
Expand Down Expand Up @@ -195,6 +195,7 @@ pub trait CheatcodeInspectorStrategy: Debug + Send + Sync + CheatcodeInspectorSt
);

/// Record broadcastable transaction during CALL.
#[allow(clippy::too_many_arguments)]
fn record_broadcastable_call_transactions(
&self,
_ctx: &mut dyn CheatcodeInspectorStrategyContext,
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/core/src/backend/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub trait BackendStrategyContext: Debug + Send + Sync + Any {

impl BackendStrategyContext for () {
fn new_cloned(&self) -> Box<dyn BackendStrategyContext> {
Box::new(self.clone())
Box::new(())
}

fn as_any_ref(&self) -> &dyn Any {
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/evm/src/executors/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub trait ExecutorStrategyContext: Debug + Send + Sync + Any {

impl ExecutorStrategyContext for () {
fn new_cloned(&self) -> Box<dyn ExecutorStrategyContext> {
Box::new(self.clone())
Box::new(*self)
}

fn as_any_ref(&self) -> &dyn Any {
Expand Down
1 change: 0 additions & 1 deletion crates/strategy/zksync/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ impl ExecutorStrategyExt for ZksyncExecutorStrategy {
) {
let ctx = get_context(ctx);
ctx.dual_compiled_contracts = dual_compiled_contracts;
println!("SAVE {}", ctx.dual_compiled_contracts.len());
}

fn zksync_set_fork_env(
Expand Down

0 comments on commit b83bf04

Please sign in to comment.