diff --git a/cli/src/cmd/forge/build.rs b/cli/src/cmd/forge/build.rs index e9b40dd08ed0..072a38e14ddc 100644 --- a/cli/src/cmd/forge/build.rs +++ b/cli/src/cmd/forge/build.rs @@ -61,7 +61,7 @@ impl<'a> From<&'a CoreBuildArgs> for Config { } } -#[derive(Debug, Clone, Parser, Serialize)] +#[derive(Debug, Clone, Parser, Serialize, Default)] pub struct CoreBuildArgs { #[clap( help_heading = "CACHE OPTIONS", @@ -212,24 +212,6 @@ impl Provider for CoreBuildArgs { } } -impl Default for CoreBuildArgs { - fn default() -> CoreBuildArgs { - CoreBuildArgs { - project_paths: Default::default(), - out_path: Default::default(), - compiler: Default::default(), - ignored_error_codes: vec![], - no_auto_detect: false, - use_solc: None, - offline: false, - force: false, - libraries: vec![], - via_ir: false, - revert_strings: None, - } - } -} - // All `forge build` related arguments // // CLI arguments take the highest precedence in the Config/Figment hierarchy.