From 979215ca556b490610a5bb5fd24bdeb5d1edfd5d Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Mon, 17 Jun 2024 17:40:22 +0200 Subject: [PATCH] chore: clippy --- crates/evm/fuzz/src/invariant/mod.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/evm/fuzz/src/invariant/mod.rs b/crates/evm/fuzz/src/invariant/mod.rs index 970245fce88d6..11e0e6853de79 100644 --- a/crates/evm/fuzz/src/invariant/mod.rs +++ b/crates/evm/fuzz/src/invariant/mod.rs @@ -89,15 +89,17 @@ impl FuzzRunIdentifiedContracts { } } -#[derive(Debug)] +/// A collection of contracts targeted for invariant testing. +#[derive(Clone, Debug, Default)] pub struct TargetedContracts { + /// The inner map of targeted contracts. pub inner: BTreeMap
, } impl TargetedContracts { /// Returns a new `TargetedContracts` instance. pub fn new() -> Self { - Self { inner: BTreeMap::new() } + Self::default() } /// Returns fuzzed contract abi and fuzzed function from address and provided calldata. @@ -115,7 +117,7 @@ impl TargetedContracts { /// Returns flatten target contract address and functions to be fuzzed. /// Includes contract targeted functions if specified, else all mutable contract functions. - pub fn fuzzed_functions<'a>(&'a self) -> impl Iterator