mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
a8a7371728
Move `iter_nth` to `style`, add machine applicable suggestion There's no `O(n)` involved with `.iter().nth()` on the linted types since the iterator implementations provide `nth` and/or `advance_by` that operate in `O(1)` For slice iterators the codegen is equivalent, `VecDeque`'s iterator seems to codegen differently but that doesn't seem significant enough to keep it as a perf lint changelog: [`iter_nth`] Move to `style` r? `@flip1995` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |