Skip to content

Commit

Permalink
fix issue #67
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Nov 19, 2021
1 parent 1847ee8 commit 18ae95e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ impl SystemEnv {
val.v = v;
}
};
if let Ok(out) = Command::new("rustup").arg("default").output() {
update_val(
RUST_CHANNEL,
String::from_utf8(out.stdout)?.trim().to_string(),
);

if let Some(v) = std_env.get("RUSTUP_TOOLCHAIN") {
update_val(RUST_CHANNEL, v.to_string());
}

if let Ok(out) = Command::new("rustc").arg("-V").output() {
Expand Down

0 comments on commit 18ae95e

Please sign in to comment.