Fix clippy errors

This commit is contained in:
Clémentine Urquizar 2021-06-17 17:03:43 +02:00
parent 33e55bd82e
commit e4b3d35ed8
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -8,6 +8,7 @@ use crate::index_controller::{Failed, IndexStats, Processed, Processing};
use super::{IndexMeta, IndexResult, IndexSettings};
#[allow(clippy::large_enum_variant)]
pub enum IndexMsg {
CreateIndex {
uuid: Uuid,