Fix clippy errors
This commit is contained in:
parent
33e55bd82e
commit
e4b3d35ed8
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue