Skip to content

Commit 5bab68a

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

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

clap_derive/src/derives/into_app.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub fn gen_for_struct(item: &Item, item_name: &Ident, generics: &Generics) -> To
3636
clippy::nursery,
3737
clippy::cargo,
3838
clippy::suspicious_else_formatting,
39+
clippy::almost_swapped,
3940
)]
4041
#[deny(clippy::correctness)]
4142
impl #impl_generics clap::CommandFactory for #item_name #ty_generics #where_clause {
@@ -72,6 +73,7 @@ pub fn gen_for_enum(item: &Item, item_name: &Ident, generics: &Generics) -> Toke
7273
clippy::nursery,
7374
clippy::cargo,
7475
clippy::suspicious_else_formatting,
76+
clippy::almost_swapped,
7577
)]
7678
#[deny(clippy::correctness)]
7779
impl #impl_generics clap::CommandFactory for #item_name #ty_generics #where_clause {

clap_derive/src/derives/value_enum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ pub fn gen_for_enum(item: &Item, item_name: &Ident, variants: &[(&Variant, Item)
6565
clippy::nursery,
6666
clippy::cargo,
6767
clippy::suspicious_else_formatting,
68+
clippy::almost_swapped,
6869
)]
6970
#[deny(clippy::correctness)]
7071
impl clap::ValueEnum for #item_name {

0 commit comments

Comments
 (0)