From bfa6e2316696965bc1bca34b84abb0753498de33 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 12 Aug 2022 07:49:05 +0200 Subject: [PATCH] numfmt: implement Eq to fix clippy warning --- src/uu/numfmt/src/options.rs | 2 +- src/uu/numfmt/src/units.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,