diff options
| author | Marcin Serwin <toxyxer@gmail.com> | 2020-04-15 13:22:28 +0200 |
|---|---|---|
| committer | Marcin Serwin <toxyxer@gmail.com> | 2020-04-15 13:35:44 +0200 |
| commit | d3ebd06ec93cbc5a9cf47f7ced6e69704758db5e (patch) | |
| tree | 310c39ddd49b9fbd4dc500a8cc84e9e81bec37a6 | |
| parent | c496f4e63f5621872060b21793c5ec4ddf0e4a35 (diff) | |
| download | rust-d3ebd06ec93cbc5a9cf47f7ced6e69704758db5e.tar.gz rust-d3ebd06ec93cbc5a9cf47f7ced6e69704758db5e.zip | |
Make the single char threshold strict inequality
| -rw-r--r-- | clippy_lints/src/non_expressive_names.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs index 98446eef9d7..45809b35986 100644 --- a/clippy_lints/src/non_expressive_names.rs +++ b/clippy_lints/src/non_expressive_names.rs @@ -93,7 +93,7 @@ impl<'a, 'tcx> SimilarNamesLocalVisitor<'a, 'tcx> { fn check_single_char_names(&self) { let num_single_char_names = self.single_char_names.iter().flatten().count(); let threshold = self.lint.single_char_binding_names_threshold; - if num_single_char_names as u64 >= threshold { + if num_single_char_names as u64 > threshold { let span = self .single_char_names .iter() |
