From efef42c1dc5698ceeacccd63a64b1d80a2546dda Mon Sep 17 00:00:00 2001 From: Koichi Akabe Date: Sun, 10 Nov 2024 11:32:04 +0900 Subject: [PATCH] Remove unnecessary lifetime parameters --- vaporetto/src/sentence.rs | 2 +- vaporetto_tantivy/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;