mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 18:41:05 -05:00
refactor: Resolve deprecations
This commit is contained in:
parent
ab61b33572
commit
cf20628f28
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ impl Default for Format {
|
||||||
#[clap(about, author, version)]
|
#[clap(about, author, version)]
|
||||||
#[clap(
|
#[clap(
|
||||||
setting = clap::AppSettings::DeriveDisplayOrder,
|
setting = clap::AppSettings::DeriveDisplayOrder,
|
||||||
setting = clap::AppSettings::DontCollapseArgsInUsage,
|
dont_collapse_args_in_usage = true,
|
||||||
color = concolor_clap::color_choice(),
|
color = concolor_clap::color_choice(),
|
||||||
)]
|
)]
|
||||||
#[clap(group = clap::ArgGroup::new("mode").multiple(false))]
|
#[clap(group = clap::ArgGroup::new("mode").multiple(false))]
|
||||||
|
@ -285,7 +285,7 @@ mod test {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn verify_app() {
|
fn verify_app() {
|
||||||
use clap::IntoApp;
|
use clap::CommandFactory;
|
||||||
Args::into_app().debug_assert()
|
Args::command().debug_assert()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue