Skip to content

Commit

Permalink
Rename lint_count -> usable_lint_count
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Feb 12, 2020
1 parent d2a69c9 commit dc042de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clippy_dev/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn main() {
fn print_lints() {
let lint_list = gather_all();
let usable_lints: Vec<Lint> = Lint::usable_lints(lint_list).collect();
let lint_count = usable_lints.len();
let usable_lint_count = usable_lints.len();
let grouped_by_lint_group = Lint::by_lint_group(usable_lints.into_iter());

for (lint_group, mut lints) in grouped_by_lint_group {
Expand All @@ -157,7 +157,7 @@ fn print_lints() {
}
}

println!("there are {} lints", lint_count);
println!("there are {} lints", usable_lint_count);
}

#[allow(clippy::too_many_lines)]
Expand All @@ -167,7 +167,7 @@ fn update_lints(update_mode: UpdateMode) {
let internal_lints = Lint::internal_lints(lint_list.clone().into_iter());

let usable_lints: Vec<Lint> = Lint::usable_lints(lint_list.clone().into_iter()).collect();
let lint_count = usable_lints.len();
let usable_lint_count = usable_lints.len();

let mut sorted_usable_lints = usable_lints.clone();
sorted_usable_lints.sort_by_key(|lint| lint.name.clone());
Expand Down Expand Up @@ -200,7 +200,7 @@ fn update_lints(update_mode: UpdateMode) {
|| {
vec![format!(
"[There are {} lints included in this crate!]({})",
lint_count, DOCS_LINK
usable_lint_count, DOCS_LINK
)]
},
)
Expand Down

0 comments on commit dc042de

Please sign in to comment.