2022-02-10 11:40:06 -06:00
|
|
|
error: unnecessary use of `splitn`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/crashes/ice-8250.rs:2:13
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
LL | let _ = s[1..].splitn(2, '.').next()?;
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s[1..].split('.')`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-splitn` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_splitn)]`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-02-10 11:40:06 -06:00
|
|
|
|