mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
makes clippy happy
This commit is contained in:
parent
04c4487660
commit
3bcff60d1c
@ -509,13 +509,12 @@ impl IndexScheduler {
|
|||||||
match status {
|
match status {
|
||||||
Status::Enqueued | Status::Processing => {
|
Status::Enqueued | Status::Processing => {
|
||||||
assert!(self
|
assert!(self
|
||||||
.file_store
|
.file_store
|
||||||
.all_uuids()
|
.all_uuids()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.find(|uuid| uuid.as_ref().unwrap() == &content_file)
|
.any(|uuid| uuid.as_ref().unwrap() == &content_file),
|
||||||
.is_some(),
|
"Could not find uuid `{content_file}` in the file_store. Available uuids are {:?}.",
|
||||||
"Could not find uuid `{content_file}` in the file_store. Available uuids are {:?}.",
|
self.file_store.all_uuids().unwrap().collect::<Result<Vec<_>>>().unwrap(),
|
||||||
self.file_store.all_uuids().unwrap().collect::<Result<Vec<_>>>(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Status::Succeeded | Status::Failed | Status::Canceled => {
|
Status::Succeeded | Status::Failed | Status::Canceled => {
|
||||||
@ -523,8 +522,7 @@ impl IndexScheduler {
|
|||||||
.file_store
|
.file_store
|
||||||
.all_uuids()
|
.all_uuids()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.find(|uuid| uuid.as_ref().unwrap() == &content_file)
|
.all(|uuid| uuid.as_ref().unwrap() != &content_file));
|
||||||
.is_none());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user