mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
dircolors : replace filter_map by map_while
This commit is contained in:
parent
d29f9f2e30
commit
889df29cba
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
Ok(f) => {
|
Ok(f) => {
|
||||||
let fin = BufReader::new(f);
|
let fin = BufReader::new(f);
|
||||||
result = parse(
|
result = parse(
|
||||||
fin.lines().filter_map(Result::ok),
|
fin.lines().map_while(Result::ok),
|
||||||
&out_format,
|
&out_format,
|
||||||
&path.to_string_lossy(),
|
&path.to_string_lossy(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue