Skip to content

Commit

Permalink
Adjust the code after #3832
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Aug 18, 2022
1 parent 85e6f86 commit 6f6784f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/uu/stty/src/stty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 6f6784f

Please sign in to comment.