diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2018-10-06 16:32:38 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2018-10-06 16:32:38 +0300 |
| commit | dee68434e6046094bd3740618388d18077bf2a43 (patch) | |
| tree | 31e6df022e19f2293804e7f4f21ea3d53534158d /src/expr.rs | |
| parent | 6dc9b9665167fb8f3ac3b576bcf6d224f956ea5d (diff) | |
Overflow Visual functions even with one argument
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs index bdc5e82e6a9..09257e59110 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1376,8 +1376,7 @@ pub fn can_be_overflowed_expr(context: &RewriteContext, expr: &ast::Expr, args_l context.config.combine_control_expr() && context.use_block_indent() && args_len == 1 } ast::ExprKind::Block(..) | ast::ExprKind::Closure(..) => { - context.use_block_indent() - || context.config.indent_style() == IndentStyle::Visual && args_len > 1 + context.use_block_indent() || context.config.indent_style() == IndentStyle::Visual } ast::ExprKind::Array(..) | ast::ExprKind::Call(..) |
