@@ -324,7 +324,7 @@ impl BlockEq {
324324
325325/// If the statement is a local, checks if the bound names match the expected list of names.
326326fn eq_binding_names ( s : & Stmt < ' _ > , names : & [ ( HirId , Symbol ) ] ) -> bool {
327- if let StmtKind :: Local ( l, _ ) = s. kind {
327+ if let StmtKind :: Local ( l) = s. kind {
328328 let mut i = 0usize ;
329329 let mut res = true ;
330330 l. pat . each_binding_or_first ( & mut |_, _, _, name| {
@@ -349,7 +349,7 @@ fn eq_stmts(
349349 eq : & mut HirEqInterExpr < ' _ , ' _ , ' _ > ,
350350 moved_bindings : & mut Vec < ( HirId , Symbol ) > ,
351351) -> bool {
352- ( if let StmtKind :: Local ( l, _ ) = stmt. kind {
352+ ( if let StmtKind :: Local ( l) = stmt. kind {
353353 let old_count = moved_bindings. len ( ) ;
354354 l. pat . each_binding_or_first ( & mut |_, id, _, name| {
355355 moved_bindings. push ( ( id, name. name ) ) ;
@@ -435,7 +435,7 @@ fn scan_block_for_eq(cx: &LateContext<'_>, _conds: &[&Expr<'_>], block: &Block<'
435435 // Clear out all locals seen at the end so far. None of them can be moved.
436436 let stmts = & blocks[ 0 ] . stmts ;
437437 for stmt in & stmts[ stmts. len ( ) - init..=stmts. len ( ) - offset] {
438- if let StmtKind :: Local ( l, _ ) = stmt. kind {
438+ if let StmtKind :: Local ( l) = stmt. kind {
439439 l. pat . each_binding_or_first ( & mut |_, id, _, _| {
440440 eq. locals . remove ( & id) ;
441441 } ) ;
0 commit comments