cargo fmt

This commit is contained in:
moxian 2025-04-28 21:09:53 -07:00
parent 790396009f
commit d25e06b448

View file

@ -26,9 +26,12 @@ impl VisitMut for Visitor<'_> {
fn visit_block_mut(&mut self, block: &mut syn::Block) { fn visit_block_mut(&mut self, block: &mut syn::Block) {
match block.stmts.as_slice() { match block.stmts.as_slice() {
[ [
syn::Stmt::Expr(syn::Expr::Loop(syn::ExprLoop { syn::Stmt::Expr(
syn::Expr::Loop(syn::ExprLoop {
body: loop_body, .. body: loop_body, ..
}), _semi), }),
_semi,
),
] if loop_body.stmts.is_empty() => {} ] if loop_body.stmts.is_empty() => {}
// Empty bodies are empty already, no need to loopify them. // Empty bodies are empty already, no need to loopify them.
[] => {} [] => {}