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