Fixup formatting of tests and source
This commit is contained in:
parent
a4cdb68925
commit
486f8fd8e7
14 changed files with 65 additions and 57 deletions
12
src/expr.rs
12
src/expr.rs
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue