diff --git a/src/lexer/token.rs b/src/lexer/token.rs index 138ad70..581994e 100644 --- a/src/lexer/token.rs +++ b/src/lexer/token.rs @@ -8,7 +8,7 @@ pub struct Token<'de> { pub span: miette::SourceSpan, } -impl<'de> Token<'de> { +impl Token<'_> { pub fn label(&self, text: impl Into) -> miette::LabeledSpan { miette::LabeledSpan::at(self.span, text.into()) } diff --git a/src/parser/lookup.rs b/src/parser/lookup.rs index e945550..1d26ee1 100644 --- a/src/parser/lookup.rs +++ b/src/parser/lookup.rs @@ -98,7 +98,7 @@ impl<'de> Lookup<'de> { // } } -impl<'de> Default for Lookup<'de> { +impl Default for Lookup<'_> { fn default() -> Self { Lookup { statement_lookup: HashMap::new(),