Parenthesize NamedExpr if target breaks (#6714)

This commit is contained in:
Micha Reiser
2023-08-21 16:29:26 +02:00
committed by GitHub
parent be96e0041a
commit f017555d53
3 changed files with 22 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ impl NeedsParentheses for ExprNamedExpr {
{
OptionalParentheses::Always
} else {
OptionalParentheses::Never
OptionalParentheses::Multiline
}
}
}