Commit ca89a06
committed
fix(contract): clippy erasing_op in M1 test — drop the vacuous high-bit assertion (CI #439)
clippy::erasing_op on recipe_kernels.rs:1074: `m.0 & !0xFF` where m.0:u8 is always 0
(a u8 can't hold bits above 0xFF). The 'no stray high bits' guard was meaningless on a
u8; the real invariant (len() <= 8) is already asserted. Removed the tautological line.
https://claude.ai/code/session_01R9AWgFa65uPnLyS2my2d2R1 parent f9927ce commit ca89a06
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | | - | |
| 1072 | + | |
| 1073 | + | |
1073 | 1074 | | |
1074 | | - | |
1075 | | - | |
| 1075 | + | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
| |||
0 commit comments