aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-08-18 22:39:38 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-08-18 22:39:38 +0300
commit9fac51722653fa0b0b6a5786166fb18c763424e0 (patch)
treea8efd3b30cf29a8fb11138b7444bb9baa0dac2fa /src/cli.rs
parent0bd445020ea19e0cea13f42a28212db7b2df196d (diff)
feat: make Windows generally available
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 7f813eb7..ac97edc5 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -216,12 +216,6 @@ fn channel_set_rejection(
channel: &str,
install_rejection: Option<&'static str>,
) -> Option<&'static str> {
- if cfg!(windows) && channel == "stable" {
- return Some(
- "stable channel is not available on Windows yet; Windows builds are preview-only",
- );
- }
-
if channel == "preview" {
return install_rejection;
}
@@ -1052,39 +1046,19 @@ mod tests {
}
#[test]
- fn channel_set_rejects_package_managed_preview_before_config_write() {
+ fn channel_set_only_applies_package_rejection_to_preview() {
assert_eq!(
super::channel_set_rejection("preview", Some("no preview")),
Some("no preview")
);
assert_eq!(
super::channel_set_rejection("stable", Some("no preview")),
- if cfg!(windows) {
- Some(
- "stable channel is not available on Windows yet; Windows builds are preview-only",
- )
- } else {
- None
- }
+ None
);
assert_eq!(super::channel_set_rejection("preview", None), None);
}
#[test]
- fn channel_set_rejects_stable_only_on_windows() {
- assert_eq!(
- super::channel_set_rejection("stable", None),
- if cfg!(windows) {
- Some(
- "stable channel is not available on Windows yet; Windows builds are preview-only",
- )
- } else {
- None
- }
- );
- }
-
- #[test]
fn channel_set_skips_self_update_for_package_manager_guidance() {
assert_eq!(
super::channel_set_install_action(Some("use package manager")),