diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index f49a799f1ce..4a54d7d4de2 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -459,7 +459,7 @@ fn invalid_speed(arg: &str, speed: &str) -> Result> { /// this function returns the appropriate error message in the case of overflow or underflow, or u8 on success fn parse_u8_or_err(arg: &str) -> Result { arg.parse::().map_err(|e| { - if let IntErrorKind::PosOverflow = e.kind() { + if *e.kind() == IntErrorKind::PosOverflow { translate!("stty-error-invalid-integer-argument-value-too-large", "value" => format!("'{arg}'")) } else { translate!("stty-error-invalid-integer-argument", "value" => format!("'{arg}'"))