Skip to content

Commit

Permalink
Make the single char threshold strict inequality
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-serwin committed Apr 15, 2020
1 parent c496f4e commit d3ebd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/non_expressive_names.rs
Expand Up @@ -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()
Expand Down

0 comments on commit d3ebd06

Please sign in to comment.