41 |
// Sort functions by (module, function) lexicographical order
|
42 |
#[allow(clippy::unnecessary_sort_by)]
|
43 |
abis.sort_by(|a, b| {
|
18 |
#[test]
|
19 |
#[allow(clippy::unnecessary_sort_by)] // False positive
|
20 |
fn read() {
|
34 |
// Sortable elements are not copyable
|
35 |
clippy::unnecessary_sort_by
|
36 |
)]
|
164 |
// Sort the advisories by date in descending order for the big listing.
|
165 |
#[allow(clippy::unnecessary_sort_by)]
|
166 |
advisories.sort_by(|(_, a, _), (_, b, _)| b.cmp(a));
|
227 |
let mut matches = filename_complete(&path, esc_char, break_chars, quote);
|
228 |
#[allow(clippy::unnecessary_sort_by)]
|
229 |
matches.sort_by(|a, b| a.display().cmp(b.display()));
|
227 |
let mut matches = filename_complete(&path, esc_char, break_chars, quote);
|
228 |
#[allow(clippy::unnecessary_sort_by)]
|
229 |
matches.sort_by(|a, b| a.display().cmp(b.display()));
|
51 |
// Sort scripts by alphabetical order.
|
52 |
#[allow(clippy::unnecessary_sort_by)]
|
53 |
abis.sort_by(|a, b| {
|
712 |
// --> [[23,0,1],[12,13,14],[9,10]]
|
713 |
#[allow(clippy::unnecessary_sort_by)] // key borrows, so lint is "wrong"
|
714 |
holes.sort_unstable_by(|l, r| l.iter().min().cmp(&r.iter().min()));
|
28 |
#[inline]
|
29 |
#[allow(clippy::unnecessary_sort_by)]
|
30 |
fn trigram_occurances_to_positions(
|
227 |
let mut matches = filename_complete(&path, esc_char, break_chars, quote);
|
228 |
#[allow(clippy::unnecessary_sort_by)]
|
229 |
matches.sort_by(|a, b| a.display().cmp(b.display()));
|