mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
fix clippy from the CI
This commit is contained in:
parent
953055e3d7
commit
33996071ea
@ -363,12 +363,11 @@ impl IndexScheduler {
|
|||||||
}
|
}
|
||||||
match details {
|
match details {
|
||||||
Some(details) => match details {
|
Some(details) => match details {
|
||||||
Details::IndexSwap { swaps: sw1 } => match &kind {
|
Details::IndexSwap { swaps: sw1 } => {
|
||||||
KindWithContent::IndexSwap { swaps: sw2 } => {
|
if let KindWithContent::IndexSwap { swaps: sw2 } = &kind {
|
||||||
assert_eq!(&sw1, sw2);
|
assert_eq!(&sw1, sw2);
|
||||||
}
|
}
|
||||||
_ => panic!(),
|
}
|
||||||
},
|
|
||||||
Details::DocumentAdditionOrUpdate { received_documents, indexed_documents } => {
|
Details::DocumentAdditionOrUpdate { received_documents, indexed_documents } => {
|
||||||
assert_eq!(kind.as_kind(), Kind::DocumentAdditionOrUpdate);
|
assert_eq!(kind.as_kind(), Kind::DocumentAdditionOrUpdate);
|
||||||
if let Some(indexed_documents) = indexed_documents {
|
if let Some(indexed_documents) = indexed_documents {
|
||||||
@ -466,16 +465,15 @@ impl IndexScheduler {
|
|||||||
assert!(self.get_status(&rtxn, status).unwrap().contains(uid));
|
assert!(self.get_status(&rtxn, status).unwrap().contains(uid));
|
||||||
assert!(self.get_kind(&rtxn, kind.as_kind()).unwrap().contains(uid));
|
assert!(self.get_kind(&rtxn, kind.as_kind()).unwrap().contains(uid));
|
||||||
|
|
||||||
match kind {
|
if let KindWithContent::DocumentAdditionOrUpdate { content_file, .. } = kind {
|
||||||
KindWithContent::DocumentAdditionOrUpdate { content_file, .. } => match status {
|
match status {
|
||||||
Status::Enqueued | Status::Processing => {
|
Status::Enqueued | Status::Processing => {
|
||||||
assert!(self.file_store.__all_uuids().contains(&content_file));
|
assert!(self.file_store.__all_uuids().contains(&content_file));
|
||||||
}
|
}
|
||||||
Status::Succeeded | Status::Failed | Status::Canceled => {
|
Status::Succeeded | Status::Failed | Status::Canceled => {
|
||||||
assert!(!self.file_store.__all_uuids().contains(&content_file));
|
assert!(!self.file_store.__all_uuids().contains(&content_file));
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user