From cf20628f284cdd1887879c73a4121679bac8f33f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 1 Mar 2022 08:38:31 -0600 Subject: [PATCH] refactor: Resolve deprecations --- src/bin/typos-cli/args.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/typos-cli/args.rs b/src/bin/typos-cli/args.rs index 540b73f..a180644 100644 --- a/src/bin/typos-cli/args.rs +++ b/src/bin/typos-cli/args.rs @@ -42,7 +42,7 @@ impl Default for Format { #[clap(about, author, version)] #[clap( setting = clap::AppSettings::DeriveDisplayOrder, - setting = clap::AppSettings::DontCollapseArgsInUsage, + dont_collapse_args_in_usage = true, color = concolor_clap::color_choice(), )] #[clap(group = clap::ArgGroup::new("mode").multiple(false))] @@ -285,7 +285,7 @@ mod test { #[test] fn verify_app() { - use clap::IntoApp; - Args::into_app().debug_assert() + use clap::CommandFactory; + Args::command().debug_assert() } }