Skip to content

Commit

Permalink
fix: derive CoreBuildArgs::Default
Browse files Browse the repository at this point in the history
  • Loading branch information
marktoda committed May 23, 2022
1 parent 6964a7c commit a62dd93
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions cli/src/cmd/forge/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a62dd93

Please sign in to comment.