mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
375 B
Plaintext
12 lines
375 B
Plaintext
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 1 previous error
|
|
|