Skip to content

Commit

Permalink
2st review on issue-6116 solvation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Glusker committed Mar 30, 2024
1 parent c60a4d9 commit b97afa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/closures.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use rustc_ast::ast::StmtKind;
use rustc_ast::{ast, ptr};
use rustc_span::Span;
use thin_vec::thin_vec;
Expand Down Expand Up @@ -121,7 +120,7 @@ fn get_inner_expr<'a>(
}

fn iter_stmts_without_empty(stmts: &[ast::Stmt]) -> impl Iterator<Item = &ast::Stmt> {
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.
Expand Down

0 comments on commit b97afa9

Please sign in to comment.