1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

numfmt: implement Eq to fix clippy warning

This commit is contained in:
Daniel Hofstetter 2022-08-12 07:49:05 +02:00
parent 0f1b98c259
commit bfa6e23166
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ impl RoundMethod {
} }
// Represents the options extracted from the --format argument provided by the user. // Represents the options extracted from the --format argument provided by the user.
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq, Eq)]
pub struct FormatOptions { pub struct FormatOptions {
pub grouping: bool, pub grouping: bool,
pub padding: Option<isize>, pub padding: Option<isize>,

View file

@ -17,7 +17,7 @@ pub const IEC_BASES: [f64; 10] = [
pub type WithI = bool; pub type WithI = bool;
#[derive(Clone, Copy, PartialEq)] #[derive(Clone, Copy, PartialEq, Eq)]
pub enum Unit { pub enum Unit {
Auto, Auto,
Si, Si,