mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
stat: fix cargo clippy
complaint (unnecessary_sort_by) (#1594)
This commit is contained in:
parent
4b76849de7
commit
2ff6b67077
1 changed files with 2 additions and 1 deletions
|
@ -485,7 +485,8 @@ impl Stater {
|
||||||
.filter_map(|line| line.split_whitespace().nth(1).map(ToOwned::to_owned))
|
.filter_map(|line| line.split_whitespace().nth(1).map(ToOwned::to_owned))
|
||||||
.collect::<Vec<String>>();
|
.collect::<Vec<String>>();
|
||||||
// Reverse sort. The longer comes first.
|
// Reverse sort. The longer comes first.
|
||||||
mount_list.sort_by(|a, b| b.cmp(a));
|
mount_list.sort();
|
||||||
|
mount_list.reverse();
|
||||||
Some(mount_list)
|
Some(mount_list)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue