From bf9bee3a64823e948582c8e2f9c9c28d9e1f27d6 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 30 Oct 2024 19:28:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20cargo=20clippy=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit semver: chore --- src/lexer/token.rs | 2 +- src/parser/lookup.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(),