fix a clippy warning

This commit is contained in:
Sylvestre Ledru 2023-12-17 09:46:07 +01:00
parent 445d0af277
commit 5120acb27a

View file

@ -2076,7 +2076,7 @@ fn sort_entries(entries: &mut [PathData], config: &Config, out: &mut BufWriter<S
)
}),
Sort::Size => {
entries.sort_by_key(|k| Reverse(k.get_metadata(out).map(|md| md.len()).unwrap_or(0)))
entries.sort_by_key(|k| Reverse(k.get_metadata(out).map(|md| md.len()).unwrap_or(0)));
}
// The default sort in GNU ls is case insensitive
Sort::Name => entries.sort_by(|a, b| a.display_name.cmp(&b.display_name)),