We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6310371 commit edd7308Copy full SHA for edd7308
src/build.rs
@@ -3,7 +3,6 @@
3
use emoji;
4
use error::Error;
5
use progressbar::Step;
6
-use std::env;
7
use std::path::Path;
8
use std::process::Command;
9
use std::str;
@@ -44,8 +43,7 @@ fn rustc_minor_version() -> Option<u32> {
44
43
}
45
};
46
47
- let rustc = otry!(env::var_os("RUSTC").unwrap_or(|| "rustc".into())); // updated because we are not in a build script
48
- let output = otry!(Command::new(rustc).arg("--version").output().ok());
+ let output = otry!(Command::new("rustc").arg("--version").output().ok());
49
let version = otry!(str::from_utf8(&output.stdout).ok());
50
let mut pieces = version.split('.');
51
if pieces.next() != Some("rustc 1") {
0 commit comments