mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Memoize text width (#6552)
This commit is contained in:
parent
fa6bff0078
commit
5f59101811
14 changed files with 213 additions and 184 deletions
|
@ -21,7 +21,7 @@ impl FormatNodeRule<ExprName> for FormatExprName {
|
|||
.text(f.context().source_code())
|
||||
);
|
||||
|
||||
write!(f, [source_text_slice(*range, ContainsNewlines::No)])
|
||||
write!(f, [source_text_slice(*range)])
|
||||
}
|
||||
|
||||
fn fmt_dangling_comments(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue