From 6f6784f1137743fc0971d978b04ba51154c60a95 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 18 Aug 2022 10:52:25 +0200 Subject: [PATCH] Adjust the code after https://github.com/uutils/coreutils/pull/3832 --- src/uu/stty/src/stty.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index 0f5476279..5303e3959 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -17,7 +17,7 @@ use std::io::{self, stdout}; use std::ops::ControlFlow; use std::os::unix::io::{AsRawFd, RawFd}; use uucore::error::{UResult, USimpleError}; -use uucore::{format_usage, InvalidEncodingHandling}; +use uucore::format_usage; #[cfg(not(any( target_os = "freebsd", @@ -138,8 +138,7 @@ ioctl_write_ptr_bad!( #[uucore::main] pub fn uumain(args: impl uucore::Args) -> UResult<()> { let args = args - .collect_str(InvalidEncodingHandling::ConvertLossy) - .accept_any(); + .collect_lossy(); let matches = uu_app().get_matches_from(args);