From 4e0882ea67a785733ab54dbef195cea56211b0db Mon Sep 17 00:00:00 2001 From: topecongiro Date: Thu, 29 Jun 2017 11:00:51 +0900 Subject: [PATCH] Combine Array --- src/expr.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/expr.rs b/src/expr.rs index 35c028d24db4..e771216dee91 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -2404,9 +2404,10 @@ pub fn can_be_overflowed_expr(context: &RewriteContext, expr: &ast::Expr, args_l context.use_block_indent() || context.config.fn_call_style() == IndentStyle::Visual && args_len > 1 } + ast::ExprKind::Array(..) | ast::ExprKind::Call(..) | - ast::ExprKind::MethodCall(..) | ast::ExprKind::Mac(..) | + ast::ExprKind::MethodCall(..) | ast::ExprKind::Struct(..) | ast::ExprKind::Tup(..) => context.use_block_indent() && args_len == 1, ast::ExprKind::AddrOf(_, ref expr) |