Commit c4f67c1
committed
Fix clippy manual_is_multiple_of errors
Replace manual modulo checks with .is_multiple_of() method:
- Line 250: p % N == 0 -> p.is_multiple_of(N)
- Line 271: address % align == 0 -> address.is_multiple_of(align)1 parent 1a3638d commit c4f67c1
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
0 commit comments