rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Useless `peekable` iterator

Open mcarton opened this issue 8 years ago • 3 comments

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).

mcarton avatar Apr 13 '16 13:04 mcarton

Sounds pretty specific. Are you sure it's worth it?

birkenfeld avatar Apr 25 '16 17:04 birkenfeld

@rustbot claim

Serial-ATA avatar Jul 29 '22 02:07 Serial-ATA

@birkenfeld FWIW I've seen this in the wild, too

lukaslueg avatar Aug 01 '22 11:08 lukaslueg