@@ -4,7 +4,7 @@ use crate::utils::usage::is_unused;
4
4
use crate :: utils:: {
5
5
expr_block, get_arg_name, get_parent_expr, implements_trait, in_macro, indent_of, is_allowed, is_expn_of,
6
6
is_refutable, is_type_diagnostic_item, is_wild, match_qpath, match_type, match_var, meets_msrv, multispan_sugg,
7
- peel_hir_pat_refs, peel_mid_ty_refs, peeln_hir_expr_refs , remove_blocks, snippet, snippet_block, snippet_opt,
7
+ peel_hir_pat_refs, peel_mid_ty_refs, peel_n_hir_expr_refs , remove_blocks, snippet, snippet_block, snippet_opt,
8
8
snippet_with_applicability, span_lint_and_help, span_lint_and_note, span_lint_and_sugg, span_lint_and_then,
9
9
} ;
10
10
use crate :: utils:: { paths, search_same, SpanlessEq , SpanlessHash } ;
@@ -748,7 +748,7 @@ fn report_single_match_single_pattern(
748
748
let ref_count_diff = ty_ref_count - pat_ref_count;
749
749
750
750
// Try to remove address of expressions first.
751
- let ( ex, removed) = peeln_hir_expr_refs ( ex, ref_count_diff) ;
751
+ let ( ex, removed) = peel_n_hir_expr_refs ( ex, ref_count_diff) ;
752
752
let ref_count_diff = ref_count_diff - removed;
753
753
754
754
let msg = "you seem to be trying to use `match` for an equality check. Consider using `if`" ;
0 commit comments