Open
Description
I think the formatting of the following boolean expression could be improved so that it is clear that:
- the first two operands are OR'ed
- and its result is AND'ed with the third operand.
A possible formatting would be:
let force_newline_brace =
(pat_expr_string.contains('\n') || pat_expr_string.len() > one_line_budget)
&& !last_line_extendable(&pat_expr_string);
If there is not enough space, we could have something like:
let force_newline_brace =
(pat_expr_string12345678.contains('\n')
|| pat_expr_string123456789.len() > one_line_budget)
&& !last_line_extendable(&pat_expr_string);