Commit 761bce9
Fix clippy unnecessary_sort_by lints from Rust 1.95
CI runs clippy with -D warnings. Rust 1.95 promoted
clippy::unnecessary_sort_by from a warn to a hard error in two
pre-existing call sites (sort_by + .cmp(&a) reversed for descending).
Replace with sort_by_key + std::cmp::Reverse, which is what clippy
suggests and is exactly equivalent.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fbb7a78 commit 761bce9
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments