mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
📎 makes clippy happy
This commit is contained in:
parent
e6b806e0cf
commit
83e20027fd
9 changed files with 15 additions and 13 deletions
|
@ -119,7 +119,7 @@ async fn get_tasks(
|
|||
// Then we complete the task filter with other potential status and types filters.
|
||||
let filters = if type_.is_some() || status.is_some() {
|
||||
let mut filters = indexes_filters.unwrap_or_default();
|
||||
filters.filter_fn(move |task| {
|
||||
filters.filter_fn(Box::new(move |task| {
|
||||
let matches_type = match &type_ {
|
||||
Some(types) => types
|
||||
.iter()
|
||||
|
@ -135,7 +135,7 @@ async fn get_tasks(
|
|||
};
|
||||
|
||||
matches_type && matches_status
|
||||
});
|
||||
}));
|
||||
Some(filters)
|
||||
} else {
|
||||
indexes_filters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue