2022-01-08 16:10:20 -06:00
|
|
|
error: unnecessary use of `splitn`
|
|
|
|
--> $DIR/ice-8250.rs:2:13
|
|
|
|
|
|
|
|
|
LL | let _ = s[1..].splitn(2, '.').next()?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s[1..].split('.')`
|
2022-01-08 16:10:20 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-splitn` implied by `-D warnings`
|
|
|
|
|
2022-04-04 10:30:38 -05:00
|
|
|
error: aborting due to previous error
|
2022-01-08 16:10:20 -06:00
|
|
|
|