From 6e1e19e0a8e5959a5fa6f066f57267330d73e87f Mon Sep 17 00:00:00 2001 From: Kobata Date: Mon, 1 Jan 2018 09:24:19 -0500 Subject: [PATCH] Revert to only calling plain rustfmt --- src/lib.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0b8fac80a3..934cf61742 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())