From 36d94257d8b6850dbd222180df8d0d969c05d439 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 25 May 2022 18:21:50 +0200 Subject: [PATCH] Make clippy happy --- meilisearch-http/src/routes/tasks.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meilisearch-http/src/routes/tasks.rs b/meilisearch-http/src/routes/tasks.rs index 66f4bbbdb..34132db0d 100644 --- a/meilisearch-http/src/routes/tasks.rs +++ b/meilisearch-http/src/routes/tasks.rs @@ -102,10 +102,10 @@ async fn get_tasks( filters.filter_fn(move |task| { let matches_type = types .iter() - .any(|t| task_type_matches_content(&t, &task.content)); + .any(|t| task_type_matches_content(t, &task.content)); let matches_status = statuses .iter() - .any(|s| task_status_matches_events(&s, &task.events)); + .any(|s| task_status_matches_events(s, &task.events)); matches_type && matches_status }); Some(filters) @@ -115,7 +115,7 @@ async fn get_tasks( filters.filter_fn(move |task| { types .iter() - .any(|t| task_type_matches_content(&t, &task.content)) + .any(|t| task_type_matches_content(t, &task.content)) }); Some(filters) } @@ -124,7 +124,7 @@ async fn get_tasks( filters.filter_fn(move |task| { statuses .iter() - .any(|s| task_status_matches_events(&s, &task.events)) + .any(|s| task_status_matches_events(s, &task.events)) }); Some(filters) }