]> git.lizzy.rs Git - rust.git/commit
Fix false positive in explicit_counter_loop lint
authorThomas Bahn <thomas@thomas-bahn.net>
Mon, 11 Nov 2019 10:27:18 +0000 (11:27 +0100)
committerThomas Bahn <thomas@thomas-bahn.net>
Mon, 11 Nov 2019 10:36:53 +0000 (11:36 +0100)
commitc88afce6fc59dc6683871c4d2a7463a94b6fb0c5
tree434878eebbc002aaafc0812a36d65a9983810db9
parent338f5e6801315fae7353facf5a338c78df7b0bce
Fix false positive in explicit_counter_loop lint

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.
clippy_lints/src/loops.rs
tests/ui/explicit_counter_loop.rs