Skip to content

Commit 0efe0bb

Browse files
committed
Auto merge of #1121 - mikhail-m1:is_tracking, r=Diggsey
fix ToolchainDesc is_tracking issue #756. I wonder, why is not ToolchainDesc.channel a enum?
2 parents 1434889 + 96942a4 commit 0efe0bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rustup-dist/src/dist.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ impl ToolchainDesc {
375375
}
376376

377377
pub fn is_tracking(&self) -> bool {
378-
self.date.is_none()
378+
let channels = ["nightly", "beta", "stable"];
379+
channels.iter().any(|x| *x == self.channel) && self.date.is_none()
379380
}
380381
}
381382

0 commit comments

Comments
 (0)