Preserve generator parentheses in single argument call expressions (#7226)

This commit is contained in:
Micha Reiser 2023-09-08 10:53:34 +02:00 committed by GitHub
parent e376c3ff7e
commit a352f2f092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 14 deletions

View file

@ -37,7 +37,7 @@ impl FormatNodeRule<Arguments> for FormatArguments {
generator_exp,
&generator_exp
.format()
.with_options(GeneratorExpParentheses::StripIfOnlyFunctionArg),
.with_options(GeneratorExpParentheses::Preserve),
),
other => {
let parentheses =