From 11d93141ddba5dac16f58fbae0d7f0cdc36a18e9 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 8 Jun 2022 09:56:57 -0500 Subject: [PATCH] test(derive): Update snapshots --- tests/derive_ui/bool_arg_enum.stderr | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/derive_ui/bool_arg_enum.stderr b/tests/derive_ui/bool_arg_enum.stderr index de944a6ae41..e963b89ff6b 100644 --- a/tests/derive_ui/bool_arg_enum.stderr +++ b/tests/derive_ui/bool_arg_enum.stderr @@ -1,3 +1,17 @@ +warning: use of deprecated variant `clap::ArgAction::IncOccurrence`: Replaced with `ArgAction::SetTrue` or `ArgAction::Count` + --> tests/derive_ui/bool_arg_enum.rs:6:5 + | +6 | #[clap(short, arg_enum)] + | ^ + | + = note: `#[warn(deprecated)]` on by default + +warning: use of deprecated variant `clap::ArgAction::IncOccurrence`: Replaced with `ArgAction::SetTrue` or `ArgAction::Count` + --> tests/derive_ui/bool_arg_enum.rs:6:5 + | +6 | #[clap(short, arg_enum)] + | ^ + error[E0277]: the trait bound `bool: ArgEnum` is not satisfied --> tests/derive_ui/bool_arg_enum.rs:7:11 | @@ -26,8 +40,6 @@ warning: use of deprecated associated function `clap::Arg::<'help>::possible_val | 7 | opts: bool, | ^^^^ - | - = note: `#[warn(deprecated)]` on by default error[E0277]: the trait bound `bool: ArgEnum` is not satisfied --> tests/derive_ui/bool_arg_enum.rs:7:11 @@ -59,9 +71,3 @@ note: required by a bound in `ArgEnum` | | fn to_possible_value<'a>(&self) -> Option>; | | } | |_^ required by this bound in `ArgEnum` - -warning: use of deprecated associated function `clap::Arg::<'help>::possible_values`: Replaced with `Arg::value_parser(PossibleValuesParser::new(...)).takes_value(true)` - --> tests/derive_ui/bool_arg_enum.rs:7:11 - | -7 | opts: bool, - | ^^^^