From f05b57f5ac978b458318b334c811e542e356b8a5 Mon Sep 17 00:00:00 2001 From: Steve Cook Date: Sat, 16 Jul 2022 12:06:09 -0400 Subject: [PATCH] Use ValueEnum over deprecated ArgEnum --- src/commands/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index df56fed..4c1af8e 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1,14 +1,14 @@ -use clap::{ArgEnum, Parser}; +use clap::{ValueEnum, Parser}; use std::fmt::{Display, Formatter}; #[derive(Parser)] pub struct Input { - #[clap(arg_enum)] + #[clap(value_enum)] pub cmd: CargoCommand, pub cargo_opts: Vec, } -#[derive(ArgEnum, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] +#[derive(ValueEnum, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)] pub enum CargoCommand { Build, Run,