rust/clippy_lints
bors f760d77bdb Auto merge of #5597 - esamudera:slice_iter_next, r=flip1995
New lint: iter_next_slice

Hello, this is a work-in-progress PR for issue: https://github.com/rust-lang/rust-clippy/issues/5572

I have implemented lint to replace `iter().next()` for `slice[index..]` and `array` with `get(index)` and `get(0)` respectively. However since I made a lot of changes, I would like to request some feedback before continuing so that I could fix mistakes.

Thank you!

---

changelog: implement `iter_next_slice` lint and test, and modify `needless_continues`, `for_loop_over_options_result` UI tests since they have `iter().next()`
2020-06-02 11:42:22 +00:00
..
src Auto merge of #5597 - esamudera:slice_iter_next, r=flip1995 2020-06-02 11:42:22 +00:00
Cargo.toml Add regression test for endless loop 2020-06-01 10:20:17 +02:00
README.md

README.md

This crate contains Clippy lints. For the main crate, check GitHub.