mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
fix(derive): Don't produce warnings
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 #2712
This commit is contained in:
parent
0394ae6102
commit
502dd78828
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue