Skip to content

Commit 6e1e19e

Browse files
committed
Revert to only calling plain rustfmt
1 parent 04591f0 commit 6e1e19e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/lib.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -1711,15 +1711,7 @@ impl Bindings {
17111711
let rustfmt = which::which("rustfmt")
17121712
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_owned()))?;
17131713

1714-
// Prefer using the `rustfmt-nightly` version of `rustmft`, if
1715-
// possible. It requires being run via `rustup run nightly ...`.
1716-
let mut cmd = if let Ok(rustup) = which::which("rustup") {
1717-
let mut cmd = Command::new(rustup);
1718-
cmd.args(&["run", "nightly", "rustfmt", "--"]);
1719-
cmd
1720-
} else {
1721-
Command::new(rustfmt)
1722-
};
1714+
let mut cmd = Command::new(rustfmt);
17231715

17241716
cmd
17251717
.stdin(Stdio::piped())

0 commit comments

Comments
 (0)