Skip to content

Commit

Permalink
fix: Allow clippy::almost_swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Feb 27, 2023
1 parent cdb33b6 commit 872135b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clap_derive/src/derives/args.rs
Expand Up @@ -109,6 +109,7 @@ pub fn gen_for_struct(
clippy::nursery,
clippy::cargo,
clippy::suspicious_else_formatting,
clippy::almost_swapped,
)]
#[deny(clippy::correctness)]
impl #impl_generics clap::FromArgMatches for #item_name #ty_generics #where_clause {
Expand Down Expand Up @@ -144,6 +145,7 @@ pub fn gen_for_struct(
clippy::nursery,
clippy::cargo,
clippy::suspicious_else_formatting,
clippy::almost_swapped,
)]
#[deny(clippy::correctness)]
impl #impl_generics clap::Args for #item_name #ty_generics #where_clause {
Expand Down
2 changes: 2 additions & 0 deletions clap_derive/src/derives/subcommand.rs
Expand Up @@ -80,6 +80,7 @@ pub fn gen_for_enum(
clippy::nursery,
clippy::cargo,
clippy::suspicious_else_formatting,
clippy::almost_swapped,
)]
#[deny(clippy::correctness)]
impl #impl_generics clap::FromArgMatches for #item_name #ty_generics #where_clause {
Expand All @@ -106,6 +107,7 @@ pub fn gen_for_enum(
clippy::nursery,
clippy::cargo,
clippy::suspicious_else_formatting,
clippy::almost_swapped,
)]
#[deny(clippy::correctness)]
impl #impl_generics clap::Subcommand for #item_name #ty_generics #where_clause {
Expand Down

0 comments on commit 872135b

Please sign in to comment.