From eb83654f1a8b9248c63f9a116aea3ebc1676b5d3 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Mon, 21 Apr 2025 01:56:51 -0300 Subject: [PATCH] fix: use stable as default channel --- src/cmds/default.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cmds/default.rs b/src/cmds/default.rs index 8432d07..5680ea5 100644 --- a/src/cmds/default.rs +++ b/src/cmds/default.rs @@ -5,12 +5,20 @@ use std::{fs, path::Path}; use crate::{Config, perm_path}; -#[derive(Parser, Default)] +#[derive(Parser)] pub struct Args { #[arg(default_value = "stable")] pub channel: String, } +impl Default for Args { + fn default() -> Self { + Self { + channel: "stable".to_string(), + } + } +} + fn set_default_channel(tx3_root: &Path, channel: &str) -> Result<()> { let default_path = tx3_root.join("default"); let channel_path = tx3_root.join(channel);