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:
Ed Page 2021-08-17 20:53:10 -05:00
parent 0394ae6102
commit 502dd78828

View file

@ -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,