@@ -631,7 +631,7 @@ impl<'tcx> LateLintPass<'tcx> for Matches {
631631 check_match_single_binding ( cx, ex, arms, expr) ;
632632 }
633633 }
634- if let ExprKind :: Match ( ref ex, ref arms, _) = expr. kind {
634+ if let ExprKind :: Match ( ex, arms, _) = expr. kind {
635635 check_match_ref_pats ( cx, ex, arms. iter ( ) . map ( |el| el. pat ) , expr) ;
636636 }
637637 if let Some ( higher:: IfLet { let_pat, let_expr, .. } ) = higher:: IfLet :: hir ( cx, expr) {
@@ -1194,7 +1194,7 @@ where
11941194
11951195 let ( first_sugg, msg, title) ;
11961196 let span = ex. span . source_callsite ( ) ;
1197- if let ExprKind :: AddrOf ( BorrowKind :: Ref , Mutability :: Not , ref inner) = ex. kind {
1197+ if let ExprKind :: AddrOf ( BorrowKind :: Ref , Mutability :: Not , inner) = ex. kind {
11981198 first_sugg = once ( ( span, Sugg :: hir_with_macro_callsite ( cx, inner, ".." ) . to_string ( ) ) ) ;
11991199 msg = "try" ;
12001200 title = "you don't need to add `&` to both the expression and the patterns" ;
@@ -1205,7 +1205,7 @@ where
12051205 }
12061206
12071207 let remaining_suggs = pats. filter_map ( |pat| {
1208- if let PatKind :: Ref ( ref refp, _) = pat. kind {
1208+ if let PatKind :: Ref ( refp, _) = pat. kind {
12091209 Some ( ( pat. span , snippet ( cx, refp. span , ".." ) . to_string ( ) ) )
12101210 } else {
12111211 None
@@ -1365,7 +1365,7 @@ where
13651365 find_bool_lit( & arm. 2 . kind, is_if_let) . map_or( false , |b| b == b0) && arm. 3 . is_none( ) && arm. 0 . is_empty( )
13661366 } ) ;
13671367 then {
1368- if let Some ( ref last_pat) = last_pat_opt {
1368+ if let Some ( last_pat) = last_pat_opt {
13691369 if !is_wild( last_pat) {
13701370 return false ;
13711371 }
0 commit comments