mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
10 lines
301 B
Text
10 lines
301 B
Text
error: unnecessary use of `splitn`
|
|
--> $DIR/ice-8250.rs:2:13
|
|
|
|
|
LL | let _ = s[1..].splitn(2, '.').next()?;
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s[1..].split('.')`
|
|
|
|
|
= note: `-D clippy::needless-splitn` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|