Skip to content

Commit

Permalink
fix: apply clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
w-lfchen committed Dec 28, 2024
1 parent 12cac8e commit 39f1380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/simplexpr/src/parser/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl<'s> Lexer<'s> {
}
}

impl<'s> Iterator for Lexer<'s> {
impl Iterator for Lexer<'_> {
type Item = Result<Sp<Token>, LexicalError>;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
2 changes: 1 addition & 1 deletion crates/yuck/src/format_diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl ToDiagnostic for simplexpr::eval::EvalError {
return diag;
}
}
return err.as_ref().to_diagnostic().with_label(span_to_primary_label(*span));
err.as_ref().to_diagnostic().with_label(span_to_primary_label(*span))
}
_ => gen_diagnostic!(self, self.span()),
}
Expand Down

0 comments on commit 39f1380

Please sign in to comment.