diff options
author | Kobata <kobata2@gmail.com> | 2018-01-01 09:24:19 -0500 |
---|---|---|
committer | Kobata <kobata2@gmail.com> | 2018-01-01 09:24:19 -0500 |
commit | 6e1e19e0a8e5959a5fa6f066f57267330d73e87f (patch) | |
tree | 297182372b1b3c68c4f2527595043c84d110ba4b | |
parent | 04591f01d96a5c05e690dcf49d19d8e003eac7bf (diff) |
Revert to only calling plain rustfmt
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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()) |