summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKobata <kobata2@gmail.com>2018-01-01 09:24:19 -0500
committerKobata <kobata2@gmail.com>2018-01-01 09:24:19 -0500
commit6e1e19e0a8e5959a5fa6f066f57267330d73e87f (patch)
tree297182372b1b3c68c4f2527595043c84d110ba4b
parent04591f01d96a5c05e690dcf49d19d8e003eac7bf (diff)
Revert to only calling plain rustfmt
-rw-r--r--src/lib.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0b8fac80..934cf617 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1711,15 +1711,7 @@ impl Bindings {
let rustfmt = which::which("rustfmt")
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_owned()))?;
- // Prefer using the `rustfmt-nightly` version of `rustmft`, if
- // possible. It requires being run via `rustup run nightly ...`.
- let mut cmd = if let Ok(rustup) = which::which("rustup") {
- let mut cmd = Command::new(rustup);
- cmd.args(&["run", "nightly", "rustfmt", "--"]);
- cmd
- } else {
- Command::new(rustfmt)
- };
+ let mut cmd = Command::new(rustfmt);
cmd
.stdin(Stdio::piped())