diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2021-08-07 18:11:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-07 18:11:49 +0200 |
| commit | bc9459f9d457c23471852a6f20c9d867385d8429 (patch) | |
| tree | c45c3a26b41f82f71d6a3b15e15906917e58a7d5 /clippy_lints | |
| parent | 176df7ca9a30d97e22a3b6ea5e5c6599ef931086 (diff) | |
| download | rust-bc9459f9d457c23471852a6f20c9d867385d8429.tar.gz rust-bc9459f9d457c23471852a6f20c9d867385d8429.zip | |
similar_names: allow "iter" and "item"
Diffstat (limited to 'clippy_lints')
| -rw-r--r-- | clippy_lints/src/non_expressive_names.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs index dc55b103eb6..ac21eb5275f 100644 --- a/clippy_lints/src/non_expressive_names.rs +++ b/clippy_lints/src/non_expressive_names.rs @@ -126,6 +126,7 @@ const ALLOWED_TO_BE_SIMILAR: &[&[&str]] = &[ &["qpath", "path"], &["lit", "lint"], &["wparam", "lparam"], + &["iter", "item"], ]; struct SimilarNamesNameVisitor<'a, 'tcx, 'b>(&'b mut SimilarNamesLocalVisitor<'a, 'tcx>); |
