|
1 | 1 | error: found call to `str::trim` before `str::split_whitespace` |
2 | | - --> $DIR/trim_split_whitespace.rs:36:23 |
| 2 | + --> $DIR/trim_split_whitespace.rs:61:23 |
3 | 3 | | |
4 | 4 | LL | let _ = " A B C ".trim().split_whitespace(); // should trigger lint |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace()` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::trim-split-whitespace` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: found call to `str::trim_start` before `str::split_whitespace` |
10 | | - --> $DIR/trim_split_whitespace.rs:37:23 |
| 10 | + --> $DIR/trim_split_whitespace.rs:62:23 |
11 | 11 | | |
12 | 12 | LL | let _ = " A B C ".trim_start().split_whitespace(); // should trigger lint |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim_start()`: `split_whitespace()` |
14 | 14 |
|
15 | 15 | error: found call to `str::trim_end` before `str::split_whitespace` |
16 | | - --> $DIR/trim_split_whitespace.rs:38:23 |
| 16 | + --> $DIR/trim_split_whitespace.rs:63:23 |
17 | 17 | | |
18 | 18 | LL | let _ = " A B C ".trim_end().split_whitespace(); // should trigger lint |
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim_end()`: `split_whitespace()` |
20 | 20 |
|
21 | 21 | error: found call to `str::trim` before `str::split_whitespace` |
22 | | - --> $DIR/trim_split_whitespace.rs:41:37 |
| 22 | + --> $DIR/trim_split_whitespace.rs:66:37 |
23 | 23 | | |
24 | 24 | LL | let _ = (" A B C ").to_string().trim().split_whitespace(); // should trigger lint |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace()` |
26 | 26 |
|
27 | 27 | error: found call to `str::trim_start` before `str::split_whitespace` |
28 | | - --> $DIR/trim_split_whitespace.rs:42:37 |
| 28 | + --> $DIR/trim_split_whitespace.rs:67:37 |
29 | 29 | | |
30 | 30 | LL | let _ = (" A B C ").to_string().trim_start().split_whitespace(); // should trigger lint |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim_start()`: `split_whitespace()` |
32 | 32 |
|
33 | 33 | error: found call to `str::trim_end` before `str::split_whitespace` |
34 | | - --> $DIR/trim_split_whitespace.rs:43:37 |
| 34 | + --> $DIR/trim_split_whitespace.rs:68:37 |
35 | 35 | | |
36 | 36 | LL | let _ = (" A B C ").to_string().trim_end().split_whitespace(); // should trigger lint |
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim_end()`: `split_whitespace()` |
38 | 38 |
|
39 | 39 | error: found call to `str::trim` before `str::split_whitespace` |
40 | | - --> $DIR/trim_split_whitespace.rs:50:15 |
| 40 | + --> $DIR/trim_split_whitespace.rs:75:15 |
41 | 41 | | |
42 | 42 | LL | let _ = s.trim().split_whitespace(); // should trigger lint |
43 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace()` |
44 | 44 |
|
45 | | -error: aborting due to 7 previous errors |
| 45 | +error: found call to `str::trim` before `str::split_whitespace` |
| 46 | + --> $DIR/trim_split_whitespace.rs:83:15 |
| 47 | + | |
| 48 | +LL | let _ = s.trim().split_whitespace(); // should trigger lint |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace()` |
| 50 | + |
| 51 | +error: aborting due to 8 previous errors |
46 | 52 |
|
0 commit comments