@@ -324,7 +324,7 @@ impl BlockEq {
324
324
325
325
/// If the statement is a local, checks if the bound names match the expected list of names.
326
326
fn 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 {
328
328
let mut i = 0usize ;
329
329
let mut res = true ;
330
330
l. pat . each_binding_or_first ( & mut |_, _, _, name| {
@@ -349,7 +349,7 @@ fn eq_stmts(
349
349
eq : & mut HirEqInterExpr < ' _ , ' _ , ' _ > ,
350
350
moved_bindings : & mut Vec < ( HirId , Symbol ) > ,
351
351
) -> bool {
352
- ( if let StmtKind :: Local ( l, _ ) = stmt. kind {
352
+ ( if let StmtKind :: Local ( l) = stmt. kind {
353
353
let old_count = moved_bindings. len ( ) ;
354
354
l. pat . each_binding_or_first ( & mut |_, id, _, name| {
355
355
moved_bindings. push ( ( id, name. name ) ) ;
@@ -435,7 +435,7 @@ fn scan_block_for_eq(cx: &LateContext<'_>, _conds: &[&Expr<'_>], block: &Block<'
435
435
// Clear out all locals seen at the end so far. None of them can be moved.
436
436
let stmts = & blocks[ 0 ] . stmts ;
437
437
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 {
439
439
l. pat . each_binding_or_first ( & mut |_, id, _, _| {
440
440
eq. locals . remove ( & id) ;
441
441
} ) ;
0 commit comments