From cbd568083d87a90dfe5ab0e90f404454946c9f20 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 15 Oct 2018 11:52:27 +1300 Subject: Fixup formatting --- src/expr.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/expr.rs') diff --git a/src/expr.rs b/src/expr.rs index 8a5b3de7a14..47777e4c5c4 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -898,10 +898,11 @@ impl<'a> ControlFlow<'a> { let trial = self.rewrite_single_line(&pat_expr_string, context, shape.width); if let Some(cond_str) = trial { - if cond_str.len() <= context - .config - .width_heuristics() - .single_line_if_else_max_width + if cond_str.len() + <= context + .config + .width_heuristics() + .single_line_if_else_max_width { return Some((cond_str, 0)); } -- cgit 1.4.1-3-g733a5