mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-25 04:45:13 +00:00
Remove lifetime from FormatContext (#4376)
This commit is contained in:
parent
6a52577630
commit
1ccef5150d
21 changed files with 124 additions and 138 deletions
|
@ -50,7 +50,7 @@ pub fn fmt(contents: &str) -> Result<Formatted<ASTFormatContext>> {
|
|||
indent_style: IndentStyle::Space(4),
|
||||
line_width: 88.try_into().unwrap(),
|
||||
},
|
||||
locator,
|
||||
locator.contents(),
|
||||
),
|
||||
[format::builders::statements(&python_cst)]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue