When the counter was used in a closure after the loop the lint didn't detect the usage of the counter correctly.
This crate contains Clippy lints. For the main crate, check crates.io or GitHub.