@@ -7,7 +7,7 @@ use clippy_utils::sugg::Sugg;
77use clippy_utils:: ty:: { implements_trait, is_type_diagnostic_item, match_type, peel_mid_ty_refs} ;
88use clippy_utils:: visitors:: LocalUsedVisitor ;
99use clippy_utils:: {
10- get_parent_expr, in_macro, is_allowed , is_expn_of, is_lang_ctor, is_refutable, is_wild, meets_msrv, msrvs,
10+ get_parent_expr, in_macro, is_expn_of, is_lang_ctor, is_lint_allowed , is_refutable, is_wild, meets_msrv, msrvs,
1111 path_to_local, path_to_local_id, peel_hir_pat_refs, peel_n_hir_expr_refs, recurse_or_patterns, remove_blocks,
1212 strip_pat_refs,
1313} ;
@@ -707,7 +707,7 @@ fn check_single_match(cx: &LateContext<'_>, ex: &Expr<'_>, arms: &[Arm<'_>], exp
707707 } ;
708708
709709 let ty = cx. typeck_results ( ) . expr_ty ( ex) ;
710- if * ty. kind ( ) != ty:: Bool || is_allowed ( cx, MATCH_BOOL , ex. hir_id ) {
710+ if * ty. kind ( ) != ty:: Bool || is_lint_allowed ( cx, MATCH_BOOL , ex. hir_id ) {
711711 check_single_match_single_pattern ( cx, ex, arms, expr, els) ;
712712 check_single_match_opt_like ( cx, ex, arms, expr, ty, els) ;
713713 }
0 commit comments