]> git.lizzy.rs Git - rust.git/commitdiff
Consider a multi-lined array as a block-like expression
authorSeiichi Uchida <seuchida@gmail.com>
Sun, 30 Sep 2018 14:27:27 +0000 (23:27 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Sun, 30 Sep 2018 14:28:14 +0000 (23:28 +0900)
src/chains.rs

index 36c89eef20dbd9d2f2e64e4a43105b0ddb71643a..c2ca322eca10a94a10683896c3090aff515a00f0 100644 (file)
@@ -844,6 +844,7 @@ fn is_block_expr(context: &RewriteContext, expr: &ast::Expr, repr: &str) -> bool
         ast::ExprKind::Mac(..)
         | ast::ExprKind::Call(..)
         | ast::ExprKind::MethodCall(..)
+        | ast::ExprKind::Array(..)
         | ast::ExprKind::Struct(..)
         | ast::ExprKind::While(..)
         | ast::ExprKind::WhileLet(..)