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

rustfmt everything except generated code #166

Merged
merged 2 commits into from
Jan 13, 2025
Merged

Conversation

wfraser
Copy link
Member

@wfraser wfraser commented Jan 13, 2025

I personally disagree with several of rustfmt's decisions, but it's better to be consistent.

Generated code isn't being formatted because

  1. it would have to get reformatted every time it gets generated; I'm
    not going to make the generator emit it so it matches rustfmt
  2. rustfmt currently chokes on some of the generated code

Checklist

General Contributing

  • I have read the Code of Conduct and signed the CLA.
  • I have added an entry to the RELEASE_NOTES.md file, or believe it's not necessary for this change.

Validation

existing automated tests

I personally disagree with several of rustfmt's decisions, but it's better to be consistent.

Generated code isn't being formatted because
1) it would have to get reformatted every time it gets generated; I'm
   not going to make the generator emit it so it matches rustfmt
2) rustfmt currently chokes on some of the generated code
@wfraser wfraser merged commit 5b6960d into dropbox:master Jan 13, 2025
2 checks passed
@wfraser wfraser deleted the fmt branch January 13, 2025 18:31
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.

1 participant