Clippy driving me to insanity, insisting on iterators

Exactly. Linters are customizable for a reason. One of these reasons is: there are different kinds and categories of lints. Not every lint is about a potential correctness or performance problem – sometimes it's about style, but the developers of any particular linter still have to pick a default.

Clippy tends to encourage functional style and iterators. It doesn't, however, have the broader context of the code, nor the intelligence of a human programmer. If in your professional opinion it is wrong or overly pedantic, feel free to tell it to just shut up and call it a day. I wouldn't overthink it.

10 Likes