Skip to content

Commit 8530b96

Browse files
autofix-ci[bot]Dunqing
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 19b1151 commit 8530b96

File tree

1 file changed

+8
-2
lines changed
  • tasks/ast_tools/src/generators/formatter

1 file changed

+8
-2
lines changed

tasks/ast_tools/src/generators/formatter/format.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ const AST_NODE_WITHOUT_PRINTING_COMMENTS_LIST: &[&str] = &[
3737
"ExportSpecifier",
3838
];
3939

40-
const AST_NODE_NEEDS_PARENTHESES: &[&str] =
41-
&["TSTypeAssertion", "TSInferType", "TSConditionalType", "TSUnionType", "TSIntersectionType", "TSConstructorType"];
40+
const AST_NODE_NEEDS_PARENTHESES: &[&str] = &[
41+
"TSTypeAssertion",
42+
"TSInferType",
43+
"TSConditionalType",
44+
"TSUnionType",
45+
"TSIntersectionType",
46+
"TSConstructorType",
47+
];
4248

4349
const NEEDS_IMPLEMENTING_FMT_WITH_OPTIONS: phf::Map<&'static str, &'static str> = phf::phf_map! {
4450
"ArrowFunctionExpression" => "FormatJsArrowFunctionExpressionOptions",

0 commit comments

Comments
 (0)