From 6f90f1f7c12e38931398ffee043e9b89cb3482b5 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Mon, 19 Oct 2026 17:52:39 +0900 Subject: [PATCH] stty: remove unnecessary let --- src/uu/stty/src/stty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index f49a799f1c..4a54d7d4de 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}'"))