Skip to content

Commit 089d986

Browse files
committed
Remove unused variable
1 parent b33a3ec commit 089d986

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

scripts/cargo.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::env;
22
#[cfg(unix)]
33
use std::os::unix::process::CommandExt;
44
use std::path::PathBuf;
5-
use std::process::{Command, Stdio};
5+
use std::process::Command;
66

77
fn main() {
88
if env::var("RUSTC_WRAPPER").map_or(false, |wrapper| wrapper.contains("sccache")) {
@@ -33,14 +33,6 @@ fn main() {
3333
rustdoc_flags.push_str(sysroot.to_str().unwrap());
3434
env::set_var("RUSTDOCFLAGS", rustdoc_flags);
3535

36-
let default_sysroot = Command::new("rustc")
37-
.stderr(Stdio::inherit())
38-
.args(&["--print", "sysroot"])
39-
.output()
40-
.unwrap()
41-
.stdout;
42-
let default_sysroot = std::str::from_utf8(&default_sysroot).unwrap().trim();
43-
4436
// Ensure that the right toolchain is used
4537
env::set_var("RUSTUP_TOOLCHAIN", env!("RUSTUP_TOOLCHAIN"));
4638

0 commit comments

Comments
 (0)