Skip to content

Commit 872135b

Browse files
committed
fix: Allow clippy::almost_swapped
1 parent cdb33b6 commit 872135b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clap_derive/src/derives/args.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ pub fn gen_for_struct(
109109
clippy::nursery,
110110
clippy::cargo,
111111
clippy::suspicious_else_formatting,
112+
clippy::almost_swapped,
112113
)]
113114
#[deny(clippy::correctness)]
114115
impl #impl_generics clap::FromArgMatches for #item_name #ty_generics #where_clause {
@@ -144,6 +145,7 @@ pub fn gen_for_struct(
144145
clippy::nursery,
145146
clippy::cargo,
146147
clippy::suspicious_else_formatting,
148+
clippy::almost_swapped,
147149
)]
148150
#[deny(clippy::correctness)]
149151
impl #impl_generics clap::Args for #item_name #ty_generics #where_clause {

clap_derive/src/derives/subcommand.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ pub fn gen_for_enum(
8080
clippy::nursery,
8181
clippy::cargo,
8282
clippy::suspicious_else_formatting,
83+
clippy::almost_swapped,
8384
)]
8485
#[deny(clippy::correctness)]
8586
impl #impl_generics clap::FromArgMatches for #item_name #ty_generics #where_clause {
@@ -106,6 +107,7 @@ pub fn gen_for_enum(
106107
clippy::nursery,
107108
clippy::cargo,
108109
clippy::suspicious_else_formatting,
110+
clippy::almost_swapped,
109111
)]
110112
#[deny(clippy::correctness)]
111113
impl #impl_generics clap::Subcommand for #item_name #ty_generics #where_clause {

0 commit comments

Comments
 (0)