From 7921ab58c55a841c96edcb60583f78ef93b47b36 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Thu, 21 Jul 2022 10:59:42 +0000 Subject: [PATCH] Rustup --- collector/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/src/main.rs b/collector/src/main.rs index 9ebf851e9..3a7fc730d 100644 --- a/collector/src/main.rs +++ b/collector/src/main.rs @@ -430,7 +430,7 @@ fn get_local_toolchain( .context("failed to run `rustup which rustc`")?; // Looks like a commit hash? Try to install it... - if output.status.code() == Some(101) && toolchain.len() == 40 { + if !output.status.success() && toolchain.len() == 40 { // No such toolchain exists, so let's try to install it with // rustup-toolchain-install-master.