Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add hex underscore fmt rule #6417

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Nov 24, 2023

Closes #6361

This adds a new fmt option for hex literals: hex_underscore = preserve,bytes,remove

The previous one was remove but I made the default preserve which is also the default for number literals.

since this is breaking, I think the default should actually be remove?

EDIT: made remove the default

Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice—yep, i agree the default should be remove

@mattsse mattsse merged commit 66967be into foundry-rs:master Nov 24, 2023
19 checks passed
@DaniPopes
Copy link
Member

Remove wasn't made the default here @mattsse ?

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.

Formatter - preserve hex underscore
3 participants