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