Skip to content

Commit

Permalink
fix a clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Dec 17, 2023
1 parent 80f2409 commit 9aed55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/ls/src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,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)),
Expand Down

0 comments on commit 9aed55f

Please sign in to comment.