1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 15:07:47 +00:00

refactor/polish ~ fix cargo clippy complaints (flat_map_identity)

This commit is contained in:
Roy Ivy III 2019-12-29 01:07:11 -06:00
parent bffea950d9
commit 37a3db1819

View file

@ -188,7 +188,7 @@ fn du(
} }
} }
stats.extend(futures.into_iter().flat_map(|val| val).rev().filter( stats.extend(futures.into_iter().flatten().rev().filter(
|stat| { |stat| {
if !options.separate_dirs && stat.path.parent().unwrap() == my_stat.path { if !options.separate_dirs && stat.path.parent().unwrap() == my_stat.path {
my_stat.size += stat.size; my_stat.size += stat.size;