diff options
| author | Nick Cameron <nrc@ncameron.org> | 2018-10-08 14:38:49 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-08 14:38:49 +1300 |
| commit | 1b2e72726f2e395578d4713f75743761677b6a4e (patch) | |
| tree | 39163f787a405b8860b27a56e920ab899d2265cb /src/expr.rs | |
| parent | 832a912f79cf5eda76d60c5b83238bdade21cde0 (diff) | |
| parent | dee68434e6046094bd3740618388d18077bf2a43 (diff) | |
Merge pull request #3078 from YaLTeR/fix-closure-indentation
Fix inconsistent overflow behavior in Visual style
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 aa5545c8161..d3f51fc5f3c 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1326,8 +1326,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(..) |
