mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
stat: fix cargo clippy complaint (unnecessary_sort_by) (#1594)
This commit is contained in:
@@ -485,7 +485,8 @@ impl Stater {
|
||||
.filter_map(|line| line.split_whitespace().nth(1).map(ToOwned::to_owned))
|
||||
.collect::<Vec<String>>();
|
||||
// Reverse sort. The longer comes first.
|
||||
mount_list.sort_by(|a, b| b.cmp(a));
|
||||
mount_list.sort();
|
||||
mount_list.reverse();
|
||||
Some(mount_list)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user