@@ -107,7 +107,7 @@ pub struct MetadataCollector {
107
107
///
108
108
/// We use a Heap here to have the lints added in alphabetic order in the export
109
109
lints : BinaryHeap < LintMetadata > ,
110
- applicability_into : FxHashMap < String , ApplicabilityInfo > ,
110
+ applicability_info : FxHashMap < String , ApplicabilityInfo > ,
111
111
}
112
112
113
113
impl Drop for MetadataCollector {
@@ -120,7 +120,7 @@ impl Drop for MetadataCollector {
120
120
return ;
121
121
}
122
122
123
- let mut applicability_info = std:: mem:: take ( & mut self . applicability_into ) ;
123
+ let mut applicability_info = std:: mem:: take ( & mut self . applicability_info ) ;
124
124
125
125
// Mapping the final data
126
126
let mut lints = std:: mem:: take ( & mut self . lints ) . into_sorted_vec ( ) ;
@@ -272,7 +272,7 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
272
272
}
273
273
274
274
for ( lint_name, applicability, is_multi_part) in emission_info. drain ( ..) {
275
- let app_info = self . applicability_into . entry ( lint_name) . or_default ( ) ;
275
+ let app_info = self . applicability_info . entry ( lint_name) . or_default ( ) ;
276
276
app_info. applicability = applicability;
277
277
app_info. is_multi_part_suggestion = is_multi_part;
278
278
}
@@ -354,7 +354,7 @@ fn lint_collection_error_item(cx: &LateContext<'_>, item: &Item<'_>, message: &s
354
354
cx,
355
355
INTERNAL_METADATA_COLLECTOR ,
356
356
item. ident . span ,
357
- & format ! ( "Metadata collection error for `{}`: {}" , item. ident. name, message) ,
357
+ & format ! ( "metadata collection error for `{}`: {}" , item. ident. name, message) ,
358
358
) ;
359
359
}
360
360
@@ -569,7 +569,7 @@ impl<'a, 'hir> IsMultiSpanScanner<'a, 'hir> {
569
569
}
570
570
571
571
/// Add a new single expression suggestion to the counter
572
- fn add_singe_span_suggestion ( & mut self ) {
572
+ fn add_single_span_suggestion ( & mut self ) {
573
573
self . suggestion_count += 1 ;
574
574
}
575
575
@@ -604,7 +604,7 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for IsMultiSpanScanner<'a, 'hir> {
604
604
. any ( |func_path| match_function_call ( self . cx , fn_expr, func_path) . is_some ( ) ) ;
605
605
if found_function {
606
606
// These functions are all multi part suggestions
607
- self . add_singe_span_suggestion ( )
607
+ self . add_single_span_suggestion ( )
608
608
}
609
609
} ,
610
610
ExprKind :: MethodCall ( path, _path_span, arg, _arg_span) => {
@@ -616,7 +616,7 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for IsMultiSpanScanner<'a, 'hir> {
616
616
if * is_multi_part {
617
617
self . add_multi_part_suggestion ( ) ;
618
618
} else {
619
- self . add_singe_span_suggestion ( ) ;
619
+ self . add_single_span_suggestion ( ) ;
620
620
}
621
621
break ;
622
622
}
0 commit comments