Memoize text width (#6552)

This commit is contained in:
Micha Reiser 2023-09-06 09:10:13 +02:00 committed by GitHub
parent fa6bff0078
commit 5f59101811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 213 additions and 184 deletions

View file

@ -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(