Skip to content

Commit

Permalink
🎨 Fix cargo clippy warnings
Browse files Browse the repository at this point in the history
semver: chore
  • Loading branch information
Somfic committed Oct 30, 2024
1 parent fbc4569 commit bf9bee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lexer/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>) -> miette::LabeledSpan {
miette::LabeledSpan::at(self.span, text.into())
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit bf9bee3

Please sign in to comment.