-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Generated code is not formatted with nightly compiler #868
Comments
tonic-build's rustfmt feature should format the code. |
Can I check somehow why it doesn't? |
Read the code in tonic build 🤷♂️😂 Can you provide a reproduction script? |
No, it happens only on my machine :) |
Then I’m not sure what could be going on. Maybe something is wrong with your |
The issue only occurs with the nightly compiler, stable works |
Does your nightly toolchain have rustfmt installed? |
Yes, e.g. this command completes |
Do you use |
I have no overrides
Did you try to reproduce the issue? formatting does not work (files changed)
formatting works (files unchanged)
|
Version
pascal@pascal-G533QM ~/L/D/q/c/quickwit-proto (conf_sort)> cargo tree | grep tonic
└── tonic v0.5.2
└── tonic-build v0.5.2
Platform
Linux pascal-G533QM 5.12.0-051200-generic #202104252130 SMP Sun Apr 25 21:33:13 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description
In our project quickwit https://github.com/quickwit-inc/quickwit, the code is not formatted or formatted differently when I run the build_script https://github.com/quickwit-inc/quickwit/blob/main/quickwit-proto/build.rs.
cd quickwit-proto;cargo build
These are the generated files on my machine:
cluster.txt
quickwit.txt
The text was updated successfully, but these errors were encountered: