blob: 0b1ae70c2a70fa907afc2737385ff1020741531a [file] [log] [blame]
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:8:13
|
LL | let _ = a % b == 0;
| ^^^^^^^^^^ help: replace with: `a.is_multiple_of(b)`
|
= note: `-D clippy::manual-is-multiple-of` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_is_multiple_of)]`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:9:13
|
LL | let _ = (a + 1) % (b + 1) == 0;
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `(a + 1).is_multiple_of(b + 1)`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:10:13
|
LL | let _ = a % b != 0;
| ^^^^^^^^^^ help: replace with: `!a.is_multiple_of(b)`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:11:13
|
LL | let _ = (a + 1) % (b + 1) != 0;
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!(a + 1).is_multiple_of(b + 1)`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:13:13
|
LL | let _ = a % b > 0;
| ^^^^^^^^^ help: replace with: `!a.is_multiple_of(b)`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:14:13
|
LL | let _ = 0 < a % b;
| ^^^^^^^^^ help: replace with: `!a.is_multiple_of(b)`
error: aborting due to 6 previous errors