mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Fix clippy errors
This commit is contained in:
parent
33e55bd82e
commit
e4b3d35ed8
2 changed files with 2 additions and 2 deletions
|
@ -461,8 +461,7 @@ impl<'a, A: AsRef<[u8]>> Formatter<'a, A> {
|
|||
let mut total_len: usize = buffer.iter().map(|(word, _)| word.len()).sum();
|
||||
let before_iter = buffer.into_iter().skip_while(move |(word, _)| {
|
||||
total_len -= word.len();
|
||||
let take = total_len >= crop_len;
|
||||
take
|
||||
total_len >= crop_len
|
||||
});
|
||||
|
||||
let mut taken_after = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue