Keep a chain with length chain_one_line_max in a single line
@@ -176,7 +176,7 @@ pub fn rewrite_chain(expr: &ast::Expr, context: &RewriteContext, shape: Shape) -
.fold(0, |a, b| a + first_line_width(b)) + parent_rewrite.len();
let one_line_len = rewrites.iter().fold(0, |a, r| a + r.len()) + parent_rewrite.len();
- let veto_single_line = if one_line_len > context.config.chain_one_line_max - 1 {
+ let veto_single_line = if one_line_len > context.config.chain_one_line_max {
if rewrites.len() > 1 {
true
} else if rewrites.len() == 1 {
