2023-12-17 18:46:49 +01:00
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2024-08-18 07:31:47 -04:00
|
|
|
--> tests/ui/str_split.rs:60:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s1.trim().split('\n');
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()`
|
|
|
|
|
|
|
|
|
|
|
= note: `-D clippy::str-split-at-newline` implied by `-D warnings`
|
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::str_split_at_newline)]`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:63:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s1.trim().split("\n");
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:65:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s1.trim().split("\r\n");
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s1.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:69:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s2.trim().split('\n');
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:72:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s2.trim().split("\n");
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:74:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s2.trim().split("\r\n");
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s2.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:79:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s3.trim().split('\n');
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:82:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s3.trim().split("\n");
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:84:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = s3.trim().split("\r\n");
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `s3.lines()`
|
|
|
|
|
|
|
|
|
|
error: using `str.trim().split()` with hard-coded newlines
|
2025-02-11 17:57:08 +01:00
|
|
|
--> tests/ui/str_split.rs:88:13
|
2023-12-17 18:46:49 +01:00
|
|
|
|
|
|
|
|
|
LL | let _ = make_str!(s1).trim().split('\n');
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `str.lines()` instead: `make_str!(s1).lines()`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|
|