Rearrange logic of needs_par computation in print_let
True || needs_par_as_let_scrutinee(...) is always true.
This commit is contained in:
parent
8d64961589
commit
dc5ec724c0
1 changed files with 5 additions and 2 deletions
|
@ -1166,8 +1166,11 @@ impl<'a> State<'a> {
|
|||
| ast::ExprKind::Closure(..)
|
||||
| ast::ExprKind::Ret(..)
|
||||
| ast::ExprKind::Yeet(..) => true,
|
||||
_ => parser::contains_exterior_struct_lit(expr),
|
||||
} || parser::needs_par_as_let_scrutinee(expr.precedence().order()),
|
||||
_ => {
|
||||
parser::contains_exterior_struct_lit(expr)
|
||||
|| parser::needs_par_as_let_scrutinee(expr.precedence().order())
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue