Skip to content

Commit 094f3a8

Browse files
committed
WIP tidy hir/lowering/expr.rs
1 parent f7ed53c commit 094f3a8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustc/hir/lowering/expr.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,10 +775,12 @@ impl LoweringContext<'_> {
775775
None
776776
};
777777
let async_body = this.make_async_expr(
778-
capture_clause, closure_id, async_ret_ty, body.span, hir::AsyncGeneratorKind::Closure,
779-
|this| {
780-
this.with_new_scopes(|this| this.lower_expr(body))
781-
}
778+
capture_clause,
779+
closure_id,
780+
async_ret_ty,
781+
body.span,
782+
hir::AsyncGeneratorKind::Closure,
783+
|this| this.with_new_scopes(|this| this.lower_expr(body)),
782784
);
783785
this.expr(fn_decl_span, async_body, ThinVec::new())
784786
});

0 commit comments

Comments
 (0)