-
Notifications
You must be signed in to change notification settings - Fork 746
lib: Add a way to override rustfmt path. #1236
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
Conversation
src/lib.rs
Outdated
@@ -601,6 +601,12 @@ impl Builder { | |||
self | |||
} | |||
|
|||
/// Sets an explicit path to rustfmt, to use when rustfmt is enabled. | |||
pub fn with_rustfmt<P: Into<PathBuf>>(mut self, path: P) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this next to the other rustfmt
related methods/options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done!
I'll need it to format some stuff on mozilla-central.
@bors-servo r=fitzgen |
📌 Commit 417c6d1 has been approved by |
lib: Add a way to override rustfmt path. I'll need it to format some stuff on mozilla-central.
💔 Test failed - status-travis |
@bors-servo r=fitzgen
|
📌 Commit b16e09c has been approved by |
lib: Add a way to override rustfmt path. I'll need it to format some stuff on mozilla-central.
☀️ Test successful - status-travis |
I'll need it to format some stuff on mozilla-central.