Skip to content

Commit e32e772

Browse files
authored
Merge pull request #1361 from tmiasko/auto-install
Fix toolchain auto installation through rustup-toolchain-install-master
2 parents fd61116 + 696b279 commit e32e772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ fn get_local_toolchain(
430430
.context("failed to run `rustup which rustc`")?;
431431

432432
// Looks like a commit hash? Try to install it...
433-
if output.status.code() == Some(101) && toolchain.len() == 40 {
433+
if !output.status.success() && toolchain.len() == 40 {
434434
// No such toolchain exists, so let's try to install it with
435435
// rustup-toolchain-install-master.
436436

0 commit comments

Comments
 (0)