mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-23 04:55:09 +00:00
Call pattern formatting (#6594)
This commit is contained in:
parent
9bf6713b76
commit
897cce83b3
22 changed files with 473 additions and 330 deletions
|
@ -51,11 +51,11 @@ impl FormatNodeRule<StmtMatch> for FormatStmtMatch {
|
|||
write!(
|
||||
f,
|
||||
[block_indent(&format_args!(
|
||||
&leading_alternate_branch_comments(
|
||||
leading_alternate_branch_comments(
|
||||
comments.leading_comments(case),
|
||||
last_case.body.last(),
|
||||
),
|
||||
&case.format()
|
||||
case.format()
|
||||
))]
|
||||
)?;
|
||||
last_case = case;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue