mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-25 04:45:13 +00:00
Create dedicated Body
nodes in the formatter CST (#3223)
This commit is contained in:
parent
cd6413ca09
commit
2261e194a0
23 changed files with 1239 additions and 611 deletions
|
@ -53,7 +53,7 @@ pub fn fmt(contents: &str) -> Result<Formatted<ASTFormatContext>> {
|
|||
},
|
||||
locator,
|
||||
),
|
||||
[format::builders::block(&python_cst)]
|
||||
[format::builders::statements(&python_cst)]
|
||||
)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue