We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04591f0 commit 6e1e19eCopy full SHA for 6e1e19e
src/lib.rs
@@ -1711,15 +1711,7 @@ impl Bindings {
1711
let rustfmt = which::which("rustfmt")
1712
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_owned()))?;
1713
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
- };
+ let mut cmd = Command::new(rustfmt);
1723
1724
cmd
1725
.stdin(Stdio::piped())
0 commit comments