mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
fix style
This commit is contained in:
parent
aeb676e757
commit
2a145e288c
@ -83,8 +83,8 @@ where
|
||||
let analyzed_text = self.analyzer.analyze(text);
|
||||
let tokens = process_tokens(analyzed_text.tokens())
|
||||
.map(|(i, mut t)| {
|
||||
t.byte_start = t.byte_start + current_byte_offset;
|
||||
t.byte_end = t.byte_end + current_byte_offset;
|
||||
t.byte_start += current_byte_offset;
|
||||
t.byte_end += current_byte_offset;
|
||||
(i + current_word_offset, t)
|
||||
})
|
||||
.enumerate();
|
||||
@ -163,6 +163,7 @@ fn process_tokens<'a>(tokens: impl Iterator<Item = Token<'a>>) -> impl Iterator<
|
||||
.filter(|(_, t)| t.is_word())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn index_token(
|
||||
token: Token,
|
||||
word_pos: usize,
|
||||
|
Loading…
Reference in New Issue
Block a user