Skip to content

Commit

Permalink
remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCourtney committed Jun 23, 2021
1 parent c195029 commit 73df719
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl VariantFields {

pub(crate) fn parser(lexer: syn::Path, mut input: syn::ItemEnum) -> Result<TokenStream2, ParceMacroError> {
let mut variants = vec![];
let mut other_rules: Vec<String> = vec![];
for variant in &mut input.variants {
variants.push(
VariantInfo {
Expand All @@ -65,8 +64,6 @@ pub(crate) fn parser(lexer: syn::Path, mut input: syn::ItemEnum) -> Result<Token
);
variant.discriminant = None;
}
other_rules.sort_unstable();
other_rules.dedup();

let enum_ident = input.ident.clone();
let num_productions = variants.len();
Expand Down

0 comments on commit 73df719

Please sign in to comment.