Skip to content

Way to reformat output code with rustfmt #1031

Answered by LucioFranco
BratSinot asked this question in Q&A
Discussion options

You must be logged in to vote

Tonic has support for prettyplease to format it. But if you generate the code into your source folder (or any folder really) you can just use Command and call rustfmt if its available in your path. Tonic used to do this before moving to prettyplease.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BratSinot
Comment options

Answer selected by BratSinot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants