dircolors : replace filter_map by map_while

This commit is contained in:
Sylvestre Ledru 2023-03-29 21:15:24 +02:00
parent d29f9f2e30
commit 889df29cba

View file

@ -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(),
);