Commit 169dad8
committed
fix(callcenter::role_keys): const { assert!() } for const-only invariant (clippy::assertions_on_constants)
CI clippy (`-D warnings`) caught a const-only `assert!` on the
SAVANT_SLICE_END <= VSA_DIMS invariant inside the
`savant_zone_fits_in_smb_headroom` test. Both operands are
compile-time constants, so the right shape is `const { assert!(..) }`
— compile-time check, no runtime work, no lint.
Lines 170-172 (SUBJECT_KEY.slice_end ≤ SAVANT_SLICE_START etc.) use
the same pattern but aren't flagged by clippy 1.95 (struct field
accesses on const RoleKey values aren't const-evaluated by this
lint); leaving them as runtime asserts pending future clippy upgrade.
https://claude.ai/code/session_017gZ6sPRXYPj5n7uJ7NBtRv1 parent d8d7d43 commit 169dad8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments