mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Make the single char threshold strict inequality
This commit is contained in:
parent
c496f4e63f
commit
d3ebd06ec9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue