diff --git a/src/uu/numfmt/src/options.rs b/src/uu/numfmt/src/options.rs index acccf83e5..0b04d1ef7 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)] +#[derive(Debug, PartialEq, Eq)] pub struct FormatOptions { pub grouping: bool, pub padding: Option, diff --git a/src/uu/numfmt/src/units.rs b/src/uu/numfmt/src/units.rs index cd32cfc87..08c7e4d3b 100644 --- a/src/uu/numfmt/src/units.rs +++ b/src/uu/numfmt/src/units.rs @@ -17,7 +17,7 @@ pub const IEC_BASES: [f64; 10] = [ pub type WithI = bool; -#[derive(Clone, Copy, PartialEq)] +#[derive(Clone, Copy, PartialEq, Eq)] pub enum Unit { Auto, Si,