Commit 85aad85
v12.19 pass 9: clean up dead bindings flagged by the compiler
- set_pnl/consume_released_pnl: drop unused new_rel binding, replace
with explicit underscored discard on the validation-only subtraction.
- enqueue_adl A-truncation: rename a_trunc_rem → _a_trunc_rem (the
remainder is unused; we consume only a_candidate_u256).
- account_equity_trade_open_raw: idx arg is unused at present; name
it _idx to silence the warning until either a caller uses it or
we drop it from the signature.
- I256::checked_add_i256: the unsigned-overflow flags from the
component overflowing_add calls are unused; the sign-based
overflow detection below doesn't need them. Renamed to
_overflow1/_overflow2.
Zero `warning: unused variable` in `cargo build --features test` now.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f248d80 commit 85aad85
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
| |||
2849 | 2851 | | |
2850 | 2852 | | |
2851 | 2853 | | |
2852 | | - | |
| 2854 | + | |
2853 | 2855 | | |
2854 | 2856 | | |
2855 | 2857 | | |
| |||
3277 | 3279 | | |
3278 | 3280 | | |
3279 | 3281 | | |
3280 | | - | |
| 3282 | + | |
3281 | 3283 | | |
3282 | 3284 | | |
3283 | 3285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
874 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
875 | 878 | | |
876 | 879 | | |
877 | 880 | | |
| |||
0 commit comments