Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/base-db/src/input.rs')
| -rw-r--r-- | crates/base-db/src/input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/base-db/src/input.rs b/crates/base-db/src/input.rs index c4ada9c765..a38ab4f628 100644 --- a/crates/base-db/src/input.rs +++ b/crates/base-db/src/input.rs @@ -284,9 +284,9 @@ impl ReleaseChannel { pub fn from_str(str: &str) -> Option<Self> { Some(match str { - "stable" => ReleaseChannel::Stable, - "beta" => ReleaseChannel::Beta, + "" => ReleaseChannel::Stable, "nightly" => ReleaseChannel::Nightly, + _ if str.starts_with("beta") => ReleaseChannel::Beta, _ => return None, }) } |