@@ -135,7 +135,7 @@ fn main() {
135135fn print_lints ( ) {
136136 let lint_list = gather_all ( ) ;
137137 let usable_lints: Vec < Lint > = Lint :: usable_lints ( lint_list) . collect ( ) ;
138- let lint_count = usable_lints. len ( ) ;
138+ let usable_lint_count = usable_lints. len ( ) ;
139139 let grouped_by_lint_group = Lint :: by_lint_group ( usable_lints. into_iter ( ) ) ;
140140
141141 for ( lint_group, mut lints) in grouped_by_lint_group {
@@ -157,7 +157,7 @@ fn print_lints() {
157157 }
158158 }
159159
160- println ! ( "there are {} lints" , lint_count ) ;
160+ println ! ( "there are {} lints" , usable_lint_count ) ;
161161}
162162
163163#[ allow( clippy:: too_many_lines) ]
@@ -167,7 +167,7 @@ fn update_lints(update_mode: UpdateMode) {
167167 let internal_lints = Lint :: internal_lints ( lint_list. clone ( ) . into_iter ( ) ) ;
168168
169169 let usable_lints: Vec < Lint > = Lint :: usable_lints ( lint_list. clone ( ) . into_iter ( ) ) . collect ( ) ;
170- let lint_count = usable_lints. len ( ) ;
170+ let usable_lint_count = usable_lints. len ( ) ;
171171
172172 let mut sorted_usable_lints = usable_lints. clone ( ) ;
173173 sorted_usable_lints. sort_by_key ( |lint| lint. name . clone ( ) ) ;
@@ -200,7 +200,7 @@ fn update_lints(update_mode: UpdateMode) {
200200 || {
201201 vec ! [ format!(
202202 "[There are {} lints included in this crate!]({})" ,
203- lint_count , DOCS_LINK
203+ usable_lint_count , DOCS_LINK
204204 ) ]
205205 } ,
206206 )
0 commit comments