1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 03:36:18 +00:00

all: remove accept_{any, complete, lossy} and ConversionResult

Outside of tests, only `accept_any` was used, meaning that this unnecessarily complicated the code. The behaviour of `accept_any` is now the default (and only) option.
This commit is contained in:
Terts Diepraam 2022-08-17 14:57:28 +02:00
parent 0ed8b97a3f
commit 5621502a95
48 changed files with 74 additions and 216 deletions

View file

@ -1021,8 +1021,7 @@ impl UCommand {
let strings = args
.iter()
.map(|s| s.as_ref().to_os_string())
.collect_str(InvalidEncodingHandling::Ignore)
.accept_any();
.collect_str(InvalidEncodingHandling::Ignore);
for s in strings {
self.comm_string.push(' ');