blob: 8ed8f3b3a0642f2bea6f9da9a5fd19c08ce850e0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|