Skip to content

Commit

Permalink
Handle all the warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdejonge committed Jan 5, 2025
1 parent aa0cccb commit f338b5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,4 @@ impl Field {
Field::Default { name, .. } => name,
}
}

pub fn get_type(&self) -> &Type {
match self {
Field::Default { ty, .. } => ty,
}
}
}
2 changes: 0 additions & 2 deletions src/string_matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use crate::nom_packages::generate_match_expression;
use itertools::Itertools;
use proc_macro2::TokenStream;
use quote::{quote_spanned, ToTokens};
use syn::parse::Parse;
use syn::spanned::Spanned;
use syn::{Error, LitStr, Result};

pub fn parse_string_match(fields: &[Field], literal: LitStr) -> Result<Vec<TokenStream>> {
Expand Down

0 comments on commit f338b5c

Please sign in to comment.