-
Notifications
You must be signed in to change notification settings - Fork 698
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_bindings doesn't work with printing bindings to stdout #968
Labels
Comments
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the If you intend to work on this issue, then add |
Can I pick up this? |
@myromeu making any progress? Anything I can help with? |
Fixed in #1042 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This produces pretty code in
output.rs
:This does not print pretty code to stdout:
See the
rustfmt_generated_file
function insrc/lib.rs
for where we currently runrustfmt
on generated files. We need to have a version of this for when we are printing tostdout
that writes the unformatted bindings to a childrustfmt
's stdin, and then pipes the child's stdout to our stdout. We actually have something pretty similar to this intests/tests.rs
as well in therustfmt
function there.The text was updated successfully, but these errors were encountered: