Remove some unnecessary ampersands in the formatter (#6667)
This commit is contained in:
@@ -27,9 +27,9 @@ impl FormatNodeRule<StmtDelete> for FormatStmtDelete {
|
||||
// del (
|
||||
// # Dangling comment
|
||||
// )
|
||||
&text("("),
|
||||
text("("),
|
||||
block_indent(&dangling_node_comments(item)),
|
||||
&text(")"),
|
||||
text(")"),
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
@@ -42,10 +42,10 @@ impl FormatNodeRule<StmtGlobal> for FormatStmtGlobal {
|
||||
[
|
||||
text("global"),
|
||||
space(),
|
||||
&group(&format_args!(
|
||||
group(&format_args!(
|
||||
if_group_breaks(&text("\\")),
|
||||
soft_line_break(),
|
||||
&soft_block_indent(&joined)
|
||||
soft_block_indent(&joined)
|
||||
))
|
||||
]
|
||||
)
|
||||
|
||||
@@ -42,10 +42,10 @@ impl FormatNodeRule<StmtNonlocal> for FormatStmtNonlocal {
|
||||
[
|
||||
text("nonlocal"),
|
||||
space(),
|
||||
&group(&format_args!(
|
||||
group(&format_args!(
|
||||
if_group_breaks(&text("\\")),
|
||||
soft_line_break(),
|
||||
&soft_block_indent(&joined)
|
||||
soft_block_indent(&joined)
|
||||
))
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user