From a2329de95b75c6025df60912fe4b380bdbc1ea94 Mon Sep 17 00:00:00 2001 From: dusk Date: Fri, 24 Jan 2025 05:25:46 +0900 Subject: [PATCH] fix(command_definitions): actually use the RESET constant we defined before --- crates/command_definitions/src/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/command_definitions/src/config.rs b/crates/command_definitions/src/config.rs index d2ca10e1..b6dca8f6 100644 --- a/crates/command_definitions/src/config.rs +++ b/crates/command_definitions/src/config.rs @@ -15,8 +15,7 @@ pub fn cmds() -> impl Iterator { command!(ap_account, Toggle => "cfg_ap_account_update") .help("Toggles autoproxy for the account"), command!(ap_timeout => "cfg_ap_timeout_show").help("Shows the autoproxy timeout"), - command!(ap_timeout, ("reset", ["clear", "default"]) => "cfg_ap_timeout_reset") - .help("Resets the autoproxy timeout"), + command!(ap_timeout, RESET => "cfg_ap_timeout_reset").help("Resets the autoproxy timeout"), command!(ap_timeout, parameter::Toggle::Off => "cfg_ap_timeout_off") .help("Disables the autoproxy timeout"), command!(ap_timeout, ("timeout", OpaqueString) => "cfg_ap_timeout_update")