rust-clippy
rust-clippy copied to clipboard
Useless `peekable` iterator
Just noticed that when refactoring. We could warn when making an iterator peekable, but never actually peeking it(/returning it/passing it to a function).
Sounds pretty specific. Are you sure it's worth it?
@rustbot claim
@birkenfeld FWIW I've seen this in the wild, too