Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Dec 12, 2024
1 parent e91fe11 commit c97f1ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/code_tools/src/linting/linters/typos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ enum Message<'m> {
Typo(Typo<'m>),
}

impl<'m> Message<'m> {
impl Message<'_> {
fn try_into_diagnostic(self) -> Option<Diagnostic> {
match self {
Self::Typo(typo) => {
Expand Down
4 changes: 2 additions & 2 deletions crates/tree_sitter/src/utf8_char_indices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl<'a> UncheckedUtf8CharIndices<'a> {
}
}

impl<'a> Iterator for UncheckedUtf8CharIndices<'a> {
impl Iterator for UncheckedUtf8CharIndices<'_> {
type Item = (usize, char);

fn next(&mut self) -> Option<Self::Item> {
Expand Down Expand Up @@ -49,7 +49,7 @@ impl<'a> Utf8CharIndices<'a> {
}
}

impl<'a> Iterator for Utf8CharIndices<'a> {
impl Iterator for Utf8CharIndices<'_> {
type Item = (usize, char);

fn next(&mut self) -> Option<Self::Item> {
Expand Down

0 comments on commit c97f1ed

Please sign in to comment.