diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-10-15 11:52:27 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-10-15 11:52:27 +1300 |
| commit | cbd568083d87a90dfe5ab0e90f404454946c9f20 (patch) | |
| tree | 809815e26d449cf2bd289c231985cf0c321d020f /src/expr.rs | |
| parent | b81b9028215dbb89cd8e16d783ccd146e1d4c162 (diff) | |
Fixup formatting
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 9 |
1 files changed, 5 insertions, 4 deletions
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)); } |
