We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd61116 + 696b279 commit e32e772Copy full SHA for e32e772
collector/src/main.rs
@@ -430,7 +430,7 @@ fn get_local_toolchain(
430
.context("failed to run `rustup which rustc`")?;
431
432
// Looks like a commit hash? Try to install it...
433
- if output.status.code() == Some(101) && toolchain.len() == 40 {
+ if !output.status.success() && toolchain.len() == 40 {
434
// No such toolchain exists, so let's try to install it with
435
// rustup-toolchain-install-master.
436
0 commit comments