diff --git a/vaporetto/src/sentence.rs b/vaporetto/src/sentence.rs index 3d4dd06..9fdbed0 100644 --- a/vaporetto/src/sentence.rs +++ b/vaporetto/src/sentence.rs @@ -99,7 +99,7 @@ pub struct Sentence<'a, 'b> { char_to_str_pos: Vec, } -impl<'a, 'b> Default for Sentence<'a, 'b> { +impl Default for Sentence<'_, '_> { /// Creates a new [`Sentence`] consisting of a space. /// /// # Examples diff --git a/vaporetto_tantivy/src/lib.rs b/vaporetto_tantivy/src/lib.rs index 47bcbcc..6711206 100644 --- a/vaporetto_tantivy/src/lib.rs +++ b/vaporetto_tantivy/src/lib.rs @@ -200,7 +200,7 @@ impl Tokenizer for VaporettoTokenizer { } } -impl<'a> TokenStream for VaporettoTokenStream<'a> { +impl TokenStream for VaporettoTokenStream<'_> { fn advance(&mut self) -> bool { if self.position < self.boundary_pos.len() { self.token.offset_from = self.offset_to;