blob: 3aba869c9111a2cdbfc50f3a434ba68d660656a3 [file] [log] [blame] [edit]
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: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:28: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:41:26
|
LL | let cl = |a: u64, b| 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:45:27
|
LL | let cl = |a: &u64, b| 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:63:19
|
LL | while n % p == 0 {
| ^^^^^^^^^^ help: replace with: `n.is_multiple_of(*p)`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:97:58
|
LL | let d = |n: u32| -> u32 { (1..=n / 2).filter(|i| n % i == 0).sum() };
| ^^^^^^^^^^ help: replace with: `n.is_multiple_of(*i)`
error: manual implementation of `.is_multiple_of()`
--> tests/ui/manual_is_multiple_of.rs:115:8
|
LL | if dot_0!(a) % dot_0!(b) == 0 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `dot_0!(a).is_multiple_of(dot_0!(b))`
error: aborting due to 12 previous errors