mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
fix a clippy warning
This commit is contained in:
parent
445d0af277
commit
5120acb27a
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue