Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve iter_overeager_cloned clippy lint
warning: called `cloned().next()` on an `Iterator`. It may be more efficient to call `next().cloned()` instead --> src/main.rs:450:30 | 450 | if let Some(first) = set.iter().cloned().next() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `set.iter().next().cloned()` | = note: `#[warn(clippy::iter_overeager_cloned)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
- Loading branch information