Skip to content

Commit 8e994c5

Browse files
author
Alexander Glusker
committed
2st review on issue-6116 solvation
1 parent c60a4d9 commit 8e994c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/closures.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use rustc_ast::ast::StmtKind;
21
use rustc_ast::{ast, ptr};
32
use rustc_span::Span;
43
use thin_vec::thin_vec;
@@ -121,7 +120,7 @@ fn get_inner_expr<'a>(
121120
}
122121

123122
fn iter_stmts_without_empty(stmts: &[ast::Stmt]) -> impl Iterator<Item = &ast::Stmt> {
124-
stmts.iter().filter(|x| !matches!(x.kind, StmtKind::Empty))
123+
stmts.iter().filter(|stmt| !matches!(stmt.kind, ast::StmtKind::Empty))
125124
}
126125

127126
// Figure out if a block is necessary.

0 commit comments

Comments
 (0)