@@ -5,8 +5,8 @@ use crate::utils::usage::{is_unused, mutated_variables};
5
5
use crate :: utils:: {
6
6
get_enclosing_block, get_parent_expr, get_trait_def_id, has_iter_method, higher, implements_trait,
7
7
is_integer_const, is_no_std_crate, is_refutable, last_path_segment, match_trait_method, match_type, match_var,
8
- multispan_sugg, snippet, snippet_opt, snippet_with_applicability, snippet_with_macro_callsite, span_lint, span_lint_and_help ,
9
- span_lint_and_sugg, span_lint_and_then, SpanlessEq ,
8
+ multispan_sugg, snippet, snippet_opt, snippet_with_applicability, snippet_with_macro_callsite, span_lint,
9
+ span_lint_and_help , span_lint_and_sugg, span_lint_and_then, SpanlessEq ,
10
10
} ;
11
11
use crate :: utils:: { is_type_diagnostic_item, qpath_res, sugg} ;
12
12
use if_chain:: if_chain;
@@ -1081,7 +1081,8 @@ fn has_mutable_variables<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) ->
1081
1081
def_id. expect_local ( ) ,
1082
1082
cx. param_env ,
1083
1083
cx. typeck_results ( ) ,
1084
- ) . walk_expr ( expr) ;
1084
+ )
1085
+ . walk_expr ( expr) ;
1085
1086
} ) ;
1086
1087
1087
1088
delegate. found_mutable
@@ -1271,7 +1272,7 @@ fn detect_same_item_push<'tcx>(
1271
1272
SAME_ITEM_PUSH ,
1272
1273
vec. span ,
1273
1274
"it looks like the same item is being pushed into this Vec" ,
1274
- None ,
1275
+ None ,
1275
1276
& format ! (
1276
1277
"try using vec![{};SIZE] or {}.resize(NEW_SIZE, {})" ,
1277
1278
item_str, vec_str, item_str
0 commit comments