diff --git a/src/chains.rs b/src/chains.rs index 570f78e5b32..38d015322ce 100644 --- a/src/chains.rs +++ b/src/chains.rs @@ -181,7 +181,7 @@ pub fn rewrite_chain(expr: &ast::Expr, context: &RewriteContext, shape: Shape) - if let Some(rw) = rewrite_chain_subexpr(last_subexpr, total_span, context, shape) { let line_count = rw.lines().count(); let fits_single_line = almost_total + first_line_width(&rw) <= one_line_budget; - if fits_single_line && (line_count >= 5 && fits_single_line || extend_last_subexr) { + if fits_single_line && (line_count >= 5 || extend_last_subexr) { (Some(rw), true) } else { match rewrite_last() {