Skip to content

replace unnecessary use of write! with Formatter::write_str#840

Merged
ahl merged 2 commits into
mainfrom
issue-839
Jun 9, 2025
Merged

replace unnecessary use of write! with Formatter::write_str#840
ahl merged 2 commits into
mainfrom
issue-839

Conversation

@ahl
Copy link
Copy Markdown
Collaborator

@ahl ahl commented Jun 9, 2025

Closes #839

This is a dumb one... and an old one! We're writing out static strings using write! which takes a format parameter. We really just want to use Formatter::write_str which takes a static string. (EDIT: not that old; introduced by #663)

Adds a new test case that fails to build without this fix.

@ahl ahl merged commit aea4f5a into main Jun 9, 2025
4 checks passed
@ahl ahl deleted the issue-839 branch June 9, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Escape {} characters in enum values

1 participant