do not eat nested exprs result in format args visitor

This commit is contained in:
Rémy Rakic 2024-03-18 09:27:47 +00:00
parent a42873e85b
commit 8beec62315

View File

@ -604,8 +604,7 @@ fn may_contain_yield_point(e: &ast::Expr) -> bool {
if let ast::ExprKind::Await(_, _) | ast::ExprKind::Yield(_) = e.kind {
ControlFlow::Break(())
} else {
visit::walk_expr(self, e);
ControlFlow::Continue(())
visit::walk_expr(self, e)
}
}