Skip to content

Commit bc9459f

Browse files
authored
similar_names: allow "iter" and "item"
1 parent 176df7c commit bc9459f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/non_expressive_names.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ const ALLOWED_TO_BE_SIMILAR: &[&[&str]] = &[
126126
&["qpath", "path"],
127127
&["lit", "lint"],
128128
&["wparam", "lparam"],
129+
&["iter", "item"],
129130
];
130131

131132
struct SimilarNamesNameVisitor<'a, 'tcx, 'b>(&'b mut SimilarNamesLocalVisitor<'a, 'tcx>);

0 commit comments

Comments
 (0)