Skip to content

Commit 3004822

Browse files
committed
Consider a multi-lined array as a block-like expression
1 parent 4a15875 commit 3004822

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/chains.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ fn is_block_expr(context: &RewriteContext, expr: &ast::Expr, repr: &str) -> bool
844844
ast::ExprKind::Mac(..)
845845
| ast::ExprKind::Call(..)
846846
| ast::ExprKind::MethodCall(..)
847+
| ast::ExprKind::Array(..)
847848
| ast::ExprKind::Struct(..)
848849
| ast::ExprKind::While(..)
849850
| ast::ExprKind::WhileLet(..)

0 commit comments

Comments
 (0)