use sort_unstable to sort primitive types
It's not important to retain original order if we have &[1, 1, 2, 3] for example. clippy::stable_sort_primitive
This commit is contained in:
parent
d92155bf6a
commit
b4935e0726
6 changed files with 16 additions and 9 deletions
|
@ -212,7 +212,8 @@ impl EarlyLintPass for NonAsciiIdents {
|
|||
}
|
||||
}
|
||||
|
||||
ch_list.sort();
|
||||
// We sort primitive chars here and can use unstable sort
|
||||
ch_list.sort_unstable();
|
||||
ch_list.dedup();
|
||||
lint_reports.insert((sp, ch_list), augment_script_set);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue