mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +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) => {
|
||||
let fin = BufReader::new(f);
|
||||
result = parse(
|
||||
fin.lines().filter_map(Result::ok),
|
||||
fin.lines().map_while(Result::ok),
|
||||
&out_format,
|
||||
&path.to_string_lossy(),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue