We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
prettyplease
rustfmt
rustfmt gives up on formatting past a certain threshold of code complexity, which is very easy to hit in generated code.
The recommended solution is to use https://github.com/dtolnay/prettyplease instead, but that would probably require some extra level of care so the two formatters don't end up fighting each other in practice.
The text was updated successfully, but these errors were encountered:
Use prettyplease to improve formatting of generated Rust code (#2949)
481e852
* Closes #2947 ### What Use [`prettyplease`](https://github.com/dtolnay/prettyplease ) to format our generated Rust code, before also running `cargo fmt` on it. Yes, we need both. Example of the resulting improvement: ![image](https://github.com/rerun-io/rerun/assets/1148717/77b24ed7-8ac5-4e35-9918-c8cb7aa1c49a) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2949) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2949) - [Docs preview](https://rerun.io/preview/pr%3Aemilk%2Fprettyplease/docs) - [Examples preview](https://rerun.io/preview/pr%3Aemilk%2Fprettyplease/examples)
emilk
Successfully merging a pull request may close this issue.
rustfmt
gives up on formatting past a certain threshold of code complexity, which is very easy to hit in generated code.The recommended solution is to use https://github.com/dtolnay/prettyplease instead, but that would probably require some extra level of care so the two formatters don't end up fighting each other in practice.
The text was updated successfully, but these errors were encountered: