Skip to content

Commit

Permalink
fix ToolchainDesc is_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-m1 committed May 16, 2017
1 parent a1c6be1 commit 96942a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rustup-dist/src/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 96942a4

Please sign in to comment.