From 359edc2c4c2f46942e406a1dabc7041318bb05f8 Mon Sep 17 00:00:00 2001 From: ysndr Date: Sun, 25 Aug 2024 19:12:52 +0200 Subject: [PATCH] fixup! feat: Derive clap::Args for enums --- clap_derive/src/item.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/clap_derive/src/item.rs b/clap_derive/src/item.rs index 4fa2037778a9..6f5fc8dabde1 100644 --- a/clap_derive/src/item.rs +++ b/clap_derive/src/item.rs @@ -79,10 +79,6 @@ impl Item { let ident = variant.ident.clone(); let span = variant.span(); - // todo: pass in as arguments - let argument_casing = Sp::new(DEFAULT_CASING, span); - let env_casing = Sp::new(DEFAULT_ENV_CASING, span); - let ty = match variant.fields { syn::Fields::Unnamed(syn::FieldsUnnamed { ref unnamed, .. }) if unnamed.len() == 1 => { Ty::from_syn_ty(&unnamed[0].ty)