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);