Skip to content

Commit

Permalink
Remove unnecessary lifetime parameters (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbkaisetsu authored Dec 3, 2024
1 parent f2b21d8 commit 29ee667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vaporetto/src/sentence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub struct Sentence<'a, 'b> {
char_to_str_pos: Vec<usize>,
}

impl<'a, 'b> Default for Sentence<'a, 'b> {
impl Default for Sentence<'_, '_> {
/// Creates a new [`Sentence`] consisting of a space.
///
/// # Examples
Expand Down
2 changes: 1 addition & 1 deletion vaporetto_tantivy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 29ee667

Please sign in to comment.