Conversation
Member
Author
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
3ed2546 to
2e61a54
Compare
MichaReiser
commented
Sep 1, 2023
| /// indent(&format_args
Summary
This PR replaces
StaticTextwith a stricterTokenelementThis proves to be sufficient for the
textusages in Ruff's formatter today (and probably all code formatters) and has the advantage that the formatter can take shortcuts for these strings.I thought about introducing a new
Tokenelement instead of replacingText. But we don't really have any use case for it other than doctests, which doesn't justify adding a new format element.Feedback welcome on
Should we rename
dynamic_texttotext?Test Plan
cargo testPerformance
This improves performance between 2-3%