Fix formatting of async blocks
This commit is contained in:
parent
393d7217ae
commit
1fa06ecf1e
3 changed files with 27 additions and 1 deletions
|
|
@ -1357,7 +1357,7 @@ pub fn can_be_overflowed_expr(
|
|||
}
|
||||
|
||||
// Handle always block-like expressions
|
||||
ast::ExprKind::Block(..) | ast::ExprKind::Closure(..) => true,
|
||||
ast::ExprKind::Async(..) | ast::ExprKind::Block(..) | ast::ExprKind::Closure(..) => true,
|
||||
|
||||
// Handle `[]` and `{}`-like expressions
|
||||
ast::ExprKind::Array(..) | ast::ExprKind::Struct(..) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue