@@ -2,51 +2,51 @@ error: found call to `str::trim` before `str::split_whitespace`
22 --> $DIR/trim_split_whitespace.rs:62:23
33 |
44LL | let _ = " A B C ".trim().split_whitespace(); // should trigger lint
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace ()`
5+ | ^^^^^^^ help: remove `trim()`
66 |
77 = note: `-D clippy::trim-split-whitespace` implied by `-D warnings`
88
99error: found call to `str::trim_start` before `str::split_whitespace`
1010 --> $DIR/trim_split_whitespace.rs:63:23
1111 |
1212LL | let _ = " A B C ".trim_start().split_whitespace(); // should trigger lint
13- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim_start()`: `split_whitespace ()`
13+ | ^^^^^^^^^^^^^ help: remove `trim_start()`
1414
1515error: found call to `str::trim_end` before `str::split_whitespace`
1616 --> $DIR/trim_split_whitespace.rs:64:23
1717 |
1818LL | let _ = " A B C ".trim_end().split_whitespace(); // should trigger lint
19- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim_end()`: `split_whitespace ()`
19+ | ^^^^^^^^^^^ help: remove `trim_end()`
2020
2121error: found call to `str::trim` before `str::split_whitespace`
2222 --> $DIR/trim_split_whitespace.rs:67:37
2323 |
2424LL | let _ = (" A B C ").to_string().trim().split_whitespace(); // should trigger lint
25- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace ()`
25+ | ^^^^^^^ help: remove `trim()`
2626
2727error: found call to `str::trim_start` before `str::split_whitespace`
2828 --> $DIR/trim_split_whitespace.rs:68:37
2929 |
3030LL | 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()`
3232
3333error: found call to `str::trim_end` before `str::split_whitespace`
3434 --> $DIR/trim_split_whitespace.rs:69:37
3535 |
3636LL | 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()`
3838
3939error: found call to `str::trim` before `str::split_whitespace`
4040 --> $DIR/trim_split_whitespace.rs:76:15
4141 |
4242LL | let _ = s.trim().split_whitespace(); // should trigger lint
43- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace ()`
43+ | ^^^^^^^ help: remove `trim()`
4444
4545error: found call to `str::trim` before `str::split_whitespace`
4646 --> $DIR/trim_split_whitespace.rs:84:15
4747 |
4848LL | let _ = s.trim().split_whitespace(); // should trigger lint
49- | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `trim()`: `split_whitespace ()`
49+ | ^^^^^^^ help: remove `trim()`
5050
5151error: aborting due to 8 previous errors
5252
0 commit comments