From c1b8a738f5eb3ad01a9ffb4efa6cc3f6a149daaa Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 9 Jul 2024 07:39:23 +0700 Subject: [PATCH] fix: ArgAction is non-exhaustive --- clap_complete/src/shells/fish.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap_complete/src/shells/fish.rs b/clap_complete/src/shells/fish.rs index ad554ae59f3..fb91b7e0d35 100644 --- a/clap_complete/src/shells/fish.rs +++ b/clap_complete/src/shells/fish.rs @@ -29,8 +29,8 @@ impl Generator for Fish { // NOTE: Use exhaustive match to update this when new actions are added // (e.g. HelpShort / HelpLong were only added recently). match a.get_action() { - ArgAction::Set | ArgAction::Append | ArgAction::SetTrue | ArgAction::SetFalse | ArgAction::Count => true, ArgAction::Help | ArgAction::HelpShort | ArgAction::HelpLong | ArgAction::Version => false, + _ => true, } });