From 2a145e288c608f59348beafe943a3f9aed5775a7 Mon Sep 17 00:00:00 2001 From: mpostma Date: Tue, 8 Dec 2020 16:03:05 +0100 Subject: [PATCH] fix style --- meilisearch-core/src/raw_indexer.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meilisearch-core/src/raw_indexer.rs b/meilisearch-core/src/raw_indexer.rs index a61a6f89c..16fad6604 100644 --- a/meilisearch-core/src/raw_indexer.rs +++ b/meilisearch-core/src/raw_indexer.rs @@ -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>) -> impl Iterator< .filter(|(_, t)| t.is_word()) } +#[allow(clippy::too_many_arguments)] fn index_token( token: Token, word_pos: usize,