|
1 | 1 | error: using `str.trim().split()` with hard-coded newlines |
2 | | - --> tests/ui/str_split.rs:60:13 |
| 2 | + --> tests/ui/str_split.rs:58:13 |
3 | 3 | | |
4 | 4 | LL | let _ = s1.trim().split('\n'); |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()` |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::str-split-at-newline` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::str_split_at_newline)]` |
| 9 | +help: use `str.lines()` instead |
| 10 | + | |
| 11 | +LL - let _ = s1.trim().split('\n'); |
| 12 | +LL + let _ = s1.lines(); |
| 13 | + | |
9 | 14 |
|
10 | 15 | error: using `str.trim().split()` with hard-coded newlines |
11 | | - --> tests/ui/str_split.rs:63:13 |
| 16 | + --> tests/ui/str_split.rs:61:13 |
12 | 17 | | |
13 | 18 | LL | let _ = s1.trim().split("\n"); |
14 | | - | ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()` |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + | |
| 21 | +help: use `str.lines()` instead |
| 22 | + | |
| 23 | +LL - let _ = s1.trim().split("\n"); |
| 24 | +LL + let _ = s1.lines(); |
| 25 | + | |
15 | 26 |
|
16 | 27 | error: using `str.trim().split()` with hard-coded newlines |
17 | | - --> tests/ui/str_split.rs:65:13 |
| 28 | + --> tests/ui/str_split.rs:63:13 |
18 | 29 | | |
19 | 30 | LL | let _ = s1.trim().split("\r\n"); |
20 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()` |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 32 | + | |
| 33 | +help: use `str.lines()` instead |
| 34 | + | |
| 35 | +LL - let _ = s1.trim().split("\r\n"); |
| 36 | +LL + let _ = s1.lines(); |
| 37 | + | |
21 | 38 |
|
22 | 39 | error: using `str.trim().split()` with hard-coded newlines |
23 | | - --> tests/ui/str_split.rs:69:13 |
| 40 | + --> tests/ui/str_split.rs:67:13 |
24 | 41 | | |
25 | 42 | LL | let _ = s2.trim().split('\n'); |
26 | | - | ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()` |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 44 | + | |
| 45 | +help: use `str.lines()` instead |
| 46 | + | |
| 47 | +LL - let _ = s2.trim().split('\n'); |
| 48 | +LL + let _ = s2.lines(); |
| 49 | + | |
27 | 50 |
|
28 | 51 | error: using `str.trim().split()` with hard-coded newlines |
29 | | - --> tests/ui/str_split.rs:72:13 |
| 52 | + --> tests/ui/str_split.rs:70:13 |
30 | 53 | | |
31 | 54 | LL | let _ = s2.trim().split("\n"); |
32 | | - | ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()` |
| 55 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 56 | + | |
| 57 | +help: use `str.lines()` instead |
| 58 | + | |
| 59 | +LL - let _ = s2.trim().split("\n"); |
| 60 | +LL + let _ = s2.lines(); |
| 61 | + | |
33 | 62 |
|
34 | 63 | error: using `str.trim().split()` with hard-coded newlines |
35 | | - --> tests/ui/str_split.rs:74:13 |
| 64 | + --> tests/ui/str_split.rs:72:13 |
36 | 65 | | |
37 | 66 | LL | let _ = s2.trim().split("\r\n"); |
38 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()` |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 68 | + | |
| 69 | +help: use `str.lines()` instead |
| 70 | + | |
| 71 | +LL - let _ = s2.trim().split("\r\n"); |
| 72 | +LL + let _ = s2.lines(); |
| 73 | + | |
39 | 74 |
|
40 | 75 | error: using `str.trim().split()` with hard-coded newlines |
41 | | - --> tests/ui/str_split.rs:79:13 |
| 76 | + --> tests/ui/str_split.rs:77:13 |
42 | 77 | | |
43 | 78 | LL | let _ = s3.trim().split('\n'); |
44 | | - | ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()` |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 80 | + | |
| 81 | +help: use `str.lines()` instead |
| 82 | + | |
| 83 | +LL - let _ = s3.trim().split('\n'); |
| 84 | +LL + let _ = s3.lines(); |
| 85 | + | |
45 | 86 |
|
46 | 87 | error: using `str.trim().split()` with hard-coded newlines |
47 | | - --> tests/ui/str_split.rs:82:13 |
| 88 | + --> tests/ui/str_split.rs:80:13 |
48 | 89 | | |
49 | 90 | LL | let _ = s3.trim().split("\n"); |
50 | | - | ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()` |
| 91 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 92 | + | |
| 93 | +help: use `str.lines()` instead |
| 94 | + | |
| 95 | +LL - let _ = s3.trim().split("\n"); |
| 96 | +LL + let _ = s3.lines(); |
| 97 | + | |
51 | 98 |
|
52 | 99 | error: using `str.trim().split()` with hard-coded newlines |
53 | | - --> tests/ui/str_split.rs:84:13 |
| 100 | + --> tests/ui/str_split.rs:82:13 |
54 | 101 | | |
55 | 102 | LL | let _ = s3.trim().split("\r\n"); |
56 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()` |
| 103 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 104 | + | |
| 105 | +help: use `str.lines()` instead |
| 106 | + | |
| 107 | +LL - let _ = s3.trim().split("\r\n"); |
| 108 | +LL + let _ = s3.lines(); |
| 109 | + | |
57 | 110 |
|
58 | 111 | error: using `str.trim().split()` with hard-coded newlines |
59 | | - --> tests/ui/str_split.rs:88:13 |
| 112 | + --> tests/ui/str_split.rs:86:13 |
60 | 113 | | |
61 | 114 | LL | let _ = make_str!(s1).trim().split('\n'); |
62 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `make_str!(s1).lines()` |
| 115 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 116 | + | |
| 117 | +help: use `str.lines()` instead |
| 118 | + | |
| 119 | +LL - let _ = make_str!(s1).trim().split('\n'); |
| 120 | +LL + let _ = make_str!(s1).lines(); |
| 121 | + | |
63 | 122 |
|
64 | 123 | error: aborting due to 10 previous errors |
65 | 124 |
|
0 commit comments