|
1 |
| -error: You appear to be counting bytes the naive way |
| 1 | +error: you appear to be counting bytes the naive way |
2 | 2 | --> $DIR/bytecount.rs:5:13
|
3 | 3 | |
|
4 | 4 | LL | let _ = x.iter().filter(|&&a| a == 0).count(); // naive byte count
|
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, 0)` |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using the bytecount crate: `bytecount::count(x, 0)` |
6 | 6 | |
|
7 | 7 | note: the lint level is defined here
|
8 | 8 | --> $DIR/bytecount.rs:1:8
|
9 | 9 | |
|
10 | 10 | LL | #[deny(clippy::naive_bytecount)]
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^
|
12 | 12 |
|
13 |
| -error: You appear to be counting bytes the naive way |
| 13 | +error: you appear to be counting bytes the naive way |
14 | 14 | --> $DIR/bytecount.rs:7:13
|
15 | 15 | |
|
16 | 16 | LL | let _ = (&x[..]).iter().filter(|&a| *a == 0).count(); // naive byte count
|
17 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count((&x[..]), 0)` |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using the bytecount crate: `bytecount::count((&x[..]), 0)` |
18 | 18 |
|
19 |
| -error: You appear to be counting bytes the naive way |
| 19 | +error: you appear to be counting bytes the naive way |
20 | 20 | --> $DIR/bytecount.rs:19:13
|
21 | 21 | |
|
22 | 22 | LL | let _ = x.iter().filter(|a| b + 1 == **a).count(); // naive byte count
|
23 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, b + 1)` |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using the bytecount crate: `bytecount::count(x, b + 1)` |
24 | 24 |
|
25 | 25 | error: aborting due to 3 previous errors
|
26 | 26 |
|
0 commit comments