Fixup formatting of tests and source

This commit is contained in:
Nick Cameron 2018-07-06 11:58:22 +12:00
parent a4cdb68925
commit 486f8fd8e7
14 changed files with 65 additions and 57 deletions

View file

@ -863,16 +863,16 @@ impl<'a> ControlFlow<'a> {
&& context
.config
.width_heuristics()
.single_line_if_else_max_width > 0
.single_line_if_else_max_width
> 0
{
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));
}