Skip to content

Commit

Permalink
fixup! feat: Derive clap::Args for enums
Browse files Browse the repository at this point in the history
  • Loading branch information
ysndr committed Aug 25, 2024
1 parent b1ddd30 commit 359edc2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions clap_derive/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 359edc2

Please sign in to comment.