mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
Make clippy happy
This commit is contained in:
parent
3f80468f18
commit
36d94257d8
@ -102,10 +102,10 @@ async fn get_tasks(
|
|||||||
filters.filter_fn(move |task| {
|
filters.filter_fn(move |task| {
|
||||||
let matches_type = types
|
let matches_type = types
|
||||||
.iter()
|
.iter()
|
||||||
.any(|t| task_type_matches_content(&t, &task.content));
|
.any(|t| task_type_matches_content(t, &task.content));
|
||||||
let matches_status = statuses
|
let matches_status = statuses
|
||||||
.iter()
|
.iter()
|
||||||
.any(|s| task_status_matches_events(&s, &task.events));
|
.any(|s| task_status_matches_events(s, &task.events));
|
||||||
matches_type && matches_status
|
matches_type && matches_status
|
||||||
});
|
});
|
||||||
Some(filters)
|
Some(filters)
|
||||||
@ -115,7 +115,7 @@ async fn get_tasks(
|
|||||||
filters.filter_fn(move |task| {
|
filters.filter_fn(move |task| {
|
||||||
types
|
types
|
||||||
.iter()
|
.iter()
|
||||||
.any(|t| task_type_matches_content(&t, &task.content))
|
.any(|t| task_type_matches_content(t, &task.content))
|
||||||
});
|
});
|
||||||
Some(filters)
|
Some(filters)
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ async fn get_tasks(
|
|||||||
filters.filter_fn(move |task| {
|
filters.filter_fn(move |task| {
|
||||||
statuses
|
statuses
|
||||||
.iter()
|
.iter()
|
||||||
.any(|s| task_status_matches_events(&s, &task.events))
|
.any(|s| task_status_matches_events(s, &task.events))
|
||||||
});
|
});
|
||||||
Some(filters)
|
Some(filters)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user