📎 makes clippy happy

This commit is contained in:
Irevoire 2022-08-12 14:18:27 +02:00
parent e6b806e0cf
commit 83e20027fd
No known key found for this signature in database
GPG key ID: 7A6A970C96104F1B
9 changed files with 15 additions and 13 deletions

View file

@ -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