mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +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 analyzed_text = self.analyzer.analyze(text);
|
||||||
let tokens = process_tokens(analyzed_text.tokens())
|
let tokens = process_tokens(analyzed_text.tokens())
|
||||||
.map(|(i, mut t)| {
|
.map(|(i, mut t)| {
|
||||||
t.byte_start = t.byte_start + current_byte_offset;
|
t.byte_start += current_byte_offset;
|
||||||
t.byte_end = t.byte_end + current_byte_offset;
|
t.byte_end += current_byte_offset;
|
||||||
(i + current_word_offset, t)
|
(i + current_word_offset, t)
|
||||||
})
|
})
|
||||||
.enumerate();
|
.enumerate();
|
||||||
@ -163,6 +163,7 @@ fn process_tokens<'a>(tokens: impl Iterator<Item = Token<'a>>) -> impl Iterator<
|
|||||||
.filter(|(_, t)| t.is_word())
|
.filter(|(_, t)| t.is_word())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn index_token(
|
fn index_token(
|
||||||
token: Token,
|
token: Token,
|
||||||
word_pos: usize,
|
word_pos: usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user