Commit 03faf48
committed
Bugfix: clippy::unnecessary_sort_by on Linux volume sorting
Bumped clippy 1.95 flags three pre-existing sort_by(|a,b| ...
cmp(...)) calls in volumes_linux/mod.rs as unnecessary_sort_by.
Switched to sort_by_key(|v| v.name.to_lowercase()).
Cfg-gated for Linux so verified by CI on Linux, not locally.1 parent d676efa commit 03faf48
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
0 commit comments