This commit is contained in:
Brent Westbrook 2025-10-21 12:19:21 -04:00
parent e6917b0897
commit e18ead10e1
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ pub(crate) enum Parenthesize {
/// when outer parentheses are present. /// when outer parentheses are present.
IfBreaksParenthesizedNested, IfBreaksParenthesizedNested,
/// Parenthesize the expression if it doesn't fit on a line or if the expression is
/// parenthesized in the source code. This is similar to `Self::Optional` except that this
/// variant will also include parentheses in nested calls, like
/// `Self::IfBreaksParenthesizedNested`.
IfBreaksComprehension, IfBreaksComprehension,
} }