We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c60a4d9 commit b97afa9Copy full SHA for b97afa9
src/closures.rs
@@ -1,4 +1,3 @@
1
-use rustc_ast::ast::StmtKind;
2
use rustc_ast::{ast, ptr};
3
use rustc_span::Span;
4
use thin_vec::thin_vec;
@@ -121,7 +120,7 @@ fn get_inner_expr<'a>(
121
120
}
122
123
fn iter_stmts_without_empty(stmts: &[ast::Stmt]) -> impl Iterator<Item = &ast::Stmt> {
124
- stmts.iter().filter(|x| !matches!(x.kind, StmtKind::Empty))
+ stmts.iter().filter(|stmt| !matches!(stmt.kind, ast::StmtKind::Empty))
125
126
127
// Figure out if a block is necessary.
0 commit comments