From 96942a473e96a6a3e355f84da6e37f887dac365a Mon Sep 17 00:00:00 2001 From: Mikhail Modin Date: Tue, 16 May 2017 09:30:26 +0300 Subject: [PATCH] fix ToolchainDesc is_tracking --- src/rustup-dist/src/dist.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rustup-dist/src/dist.rs b/src/rustup-dist/src/dist.rs index b7fde7d4ef..cf3f8e7d2a 100644 --- a/src/rustup-dist/src/dist.rs +++ b/src/rustup-dist/src/dist.rs @@ -374,7 +374,8 @@ impl ToolchainDesc { } pub fn is_tracking(&self) -> bool { - self.date.is_none() + let channels = ["nightly", "beta", "stable"]; + channels.iter().any(|x| *x == self.channel) && self.date.is_none() } }