Repository navigation
Commit d7e76ba
fix(rust): satisfy clippy 1.96 lints
Rust 1.96 added new clippy lints that broke the workspace with `-D warnings`:
- `unnecessary_sort_by` on the CLI help codegen `sort_by` calls: switched to `sort_by_key`.
- `manual_is_multiple_of` on the Codex leap-year helper: switched to `u16::is_multiple_of`.
- `unnecessary_unwrap` on the pricing override branches: switched to `if let Some(value) = …`.
- `unused_imports` on the `ccusage-test-support` tests module: dropped the redundant `use crate::fs_fixture` since the macro is `#[macro_export]` and is referenced via the macro_rules name directly.
Co-authored-by: Codesmith <[email protected]>1 parent 3670758 commit d7e76ba
4 files changed
Lines changed: 7 additions & 9 deletions
File tree
- rust/crates
- ccusage-cli/src
- ccusage-test-support/src
- ccusage/src
- adapter/codex
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
| 472 | + | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
481 | | - | |
| 480 | + | |
| 481 | + | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| |||
0 commit comments