mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
dircolors : replace filter_map by map_while
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user