This commit is contained in:
Lukas Wirth 2024-08-05 13:58:01 +02:00 committed by GitHub
parent 747615d95b
commit c9e1cb4887
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,15 +65,9 @@ pub(super) fn hints(
ast::BlockExpr(block_expr) => { ast::BlockExpr(block_expr) => {
block = block_expr.stmt_list()?; block = block_expr.stmt_list()?;
}, },
ast::LoopExpr(loop_expr) => { ast::AnyHasLoopBody(loop_expr) => {
block = loop_expr.loop_body()?.stmt_list()?; block = loop_expr.loop_body()?.stmt_list()?;
}, },
ast::WhileExpr(while_expr) => {
block = while_expr.loop_body()?.stmt_list()?;
},
ast::ForExpr(for_expr) => {
block = for_expr.loop_body()?.stmt_list()?;
},
_ => return None, _ => return None,
} }
} }