From f295af1f3ff61f4b146b0056ae00760ee1798b25 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Tue, 11 Oct 2022 10:53:19 -0700 Subject: [PATCH] chore: fix clippy --- ethers-solc/src/project_util/mock.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ethers-solc/src/project_util/mock.rs b/ethers-solc/src/project_util/mock.rs index 8576a520..aa8f635f 100644 --- a/ethers-solc/src/project_util/mock.rs +++ b/ethers-solc/src/project_util/mock.rs @@ -33,7 +33,7 @@ impl MockProjectSkeleton { } /// Represents a virtual project -#[derive(Serialize)] +#[derive(Serialize, Default)] pub struct MockProjectGenerator { /// how to name things #[serde(skip)] @@ -368,12 +368,6 @@ impl From for MockProjectGenerator { } } -impl Default for MockProjectGenerator { - fn default() -> Self { - Self { name_strategy: Box::new(SimpleNamingStrategy::default()), inner: Default::default() } - } -} - /// Used to determine the names for elements trait NamingStrategy { /// Return a new name for the given source file id