Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/uu/stty/src/stty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ fn invalid_speed<T>(arg: &str, speed: &str) -> Result<T, Box<dyn UError>> {
/// 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<u8, String> {
arg.parse::<u8>().map_err(|e| {
if let IntErrorKind::PosOverflow = e.kind() {
if *e.kind() == IntErrorKind::PosOverflow {
Comment thread
oech3 marked this conversation as resolved.
translate!("stty-error-invalid-integer-argument-value-too-large", "value" => format!("'{arg}'"))
} else {
translate!("stty-error-invalid-integer-argument", "value" => format!("'{arg}'"))
Expand Down
Loading