diff --git a/src/uu/numfmt/src/options.rs b/src/uu/numfmt/src/options.rs index 535f6dfa6..40a18ed16 100644 --- a/src/uu/numfmt/src/options.rs +++ b/src/uu/numfmt/src/options.rs @@ -74,7 +74,7 @@ impl RoundMethod { } // Represents the options extracted from the --format argument provided by the user. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, Default, PartialEq, Eq)] pub struct FormatOptions { pub grouping: bool, pub padding: Option, @@ -84,19 +84,6 @@ pub struct FormatOptions { pub zero_padding: bool, } -impl Default for FormatOptions { - fn default() -> Self { - Self { - grouping: false, - padding: None, - precision: None, - prefix: String::new(), - suffix: String::new(), - zero_padding: false, - } - } -} - impl FromStr for FormatOptions { type Err = String;