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

Remove -f option from rustfmt. #356

Merged
merged 2 commits into from
Jul 10, 2018
Merged

Remove -f option from rustfmt. #356

merged 2 commits into from
Jul 10, 2018

Conversation

ry
Copy link
Member

@ry ry commented Jul 10, 2018

No description provided.

@ry ry requested a review from piscisaureus July 10, 2018 16:52
tools/format.py Outdated
@@ -19,4 +19,4 @@
run(["yapf", "-i"] + glob("tools/*.py"))
run(["node", prettier, "--write"] + glob("js/*.js") + glob("js/*.ts") +
["tsconfig.json"] + ["tslint.json"])
run(["rustfmt", "-f", "--write-mode", "overwrite"] + glob("src/*.rs"))
run(["rustfmt", "--write-mode", "overwrite"] + glob("src/*.rs"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks it for me again, I can't figure out how to get rustfmt to work without switching to the nightly toolchain.
They appear to try very hard to make it impossible.
Maybe pick up RUSTFMT_FLAGS from the environment so I can use that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry, I thought you meant that RUSTFMT_FLAGS was an already recognized option... I added another commit that does as you asked

Copy link
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works, thanks.

@ry ry merged commit 7913571 into master Jul 10, 2018
@ry ry deleted the fix_format branch July 10, 2018 23:18
piscisaureus pushed a commit to piscisaureus/deno that referenced this pull request Oct 7, 2019
Make warnings fail
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 this pull request may close these issues.

None yet

2 participants