diff --git a/src/closures.rs b/src/closures.rs index 4af8aa95c52..d9b6d7fb1cc 100644 --- a/src/closures.rs +++ b/src/closures.rs @@ -1,4 +1,3 @@ -use rustc_ast::ast::StmtKind; use rustc_ast::{ast, ptr}; use rustc_span::Span; use thin_vec::thin_vec; @@ -121,7 +120,7 @@ fn get_inner_expr<'a>( } fn iter_stmts_without_empty(stmts: &[ast::Stmt]) -> impl Iterator { - stmts.iter().filter(|x| !matches!(x.kind, StmtKind::Empty)) + stmts.iter().filter(|stmt| !matches!(stmt.kind, ast::StmtKind::Empty)) } // Figure out if a block is necessary.