Skip to content

Commit

Permalink
fix(derive): Don't produce warnings
Browse files Browse the repository at this point in the history
I did some digging to root cause this but gave up and suppressed it,
like others.  Warnings like this also come with a cost of code-gen
complexity.

Fixes clap-rs#2712
  • Loading branch information
epage committed Aug 18, 2021
1 parent 0394ae6 commit 502dd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_derive/src/derives/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn gen_from_arg_matches_for_enum(name: &Ident, attrs: &[Attribute], e: &DataEnum
let update_from_arg_matches = gen_update_from_arg_matches(name, &e.variants, &attrs);

quote! {
#[allow(dead_code, unreachable_code, unused_variables)]
#[allow(dead_code, unreachable_code, unused_variables, unused_braces)]
#[allow(
clippy::style,
clippy::complexity,
Expand Down

0 comments on commit 502dd78

Please sign in to comment.