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

Add @generated comment at the top of the generated file #834

Closed
bouk opened this issue Mar 31, 2023 · 0 comments · Fixed by #935
Closed

Add @generated comment at the top of the generated file #834

bouk opened this issue Mar 31, 2023 · 0 comments · Fixed by #935

Comments

@bouk
Copy link

bouk commented Mar 31, 2023

If a file starts with // @generated then rustfmt will ignore it.

This is useful if you're committing the generated files to git and you don't want to have CI fail because of the generated files

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 a pull request may close this issue.

1 participant