Tighten spans for async blocks

This commit is contained in:
Michael Goulet 2024-06-27 14:56:57 -04:00
parent 514fe39e25
commit 51df533d06

View File

@ -372,7 +372,7 @@ pub(crate) fn format_expr(
))
}
}
ast::ExprKind::Gen(capture_by, ref block, ref kind) => {
ast::ExprKind::Gen(capture_by, ref block, ref kind, _) => {
let mover = if matches!(capture_by, ast::CaptureBy::Value { .. }) {
"move "
} else {