|
1 | 1 | error: this multiplication by -1 can be written more succinctly
|
2 |
| - --> $DIR/neg_multiply.rs:28:5 |
| 2 | + --> $DIR/neg_multiply.rs:29:5 |
3 | 3 | |
|
4 | 4 | LL | x * -1;
|
5 | 5 | | ^^^^^^ help: consider using: `-x`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::neg-multiply` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: this multiplication by -1 can be written more succinctly
|
10 |
| - --> $DIR/neg_multiply.rs:30:5 |
| 10 | + --> $DIR/neg_multiply.rs:31:5 |
11 | 11 | |
|
12 | 12 | LL | -1 * x;
|
13 | 13 | | ^^^^^^ help: consider using: `-x`
|
14 | 14 |
|
15 | 15 | error: this multiplication by -1 can be written more succinctly
|
16 |
| - --> $DIR/neg_multiply.rs:32:11 |
| 16 | + --> $DIR/neg_multiply.rs:33:11 |
17 | 17 | |
|
18 | 18 | LL | 100 + x * -1;
|
19 | 19 | | ^^^^^^ help: consider using: `-x`
|
20 | 20 |
|
21 | 21 | error: this multiplication by -1 can be written more succinctly
|
22 |
| - --> $DIR/neg_multiply.rs:34:5 |
| 22 | + --> $DIR/neg_multiply.rs:35:5 |
23 | 23 | |
|
24 | 24 | LL | (100 + x) * -1;
|
25 | 25 | | ^^^^^^^^^^^^^^ help: consider using: `-(100 + x)`
|
26 | 26 |
|
27 | 27 | error: this multiplication by -1 can be written more succinctly
|
28 |
| - --> $DIR/neg_multiply.rs:36:5 |
| 28 | + --> $DIR/neg_multiply.rs:37:5 |
29 | 29 | |
|
30 | 30 | LL | -1 * 17;
|
31 | 31 | | ^^^^^^^ help: consider using: `-17`
|
32 | 32 |
|
33 | 33 | error: this multiplication by -1 can be written more succinctly
|
34 |
| - --> $DIR/neg_multiply.rs:38:14 |
| 34 | + --> $DIR/neg_multiply.rs:39:14 |
35 | 35 | |
|
36 | 36 | LL | 0xcafe | 0xff00 * -1;
|
37 | 37 | | ^^^^^^^^^^^ help: consider using: `-0xff00`
|
|
0 commit comments