From 135f656e8f70e6c949e1452f751471a355fba845 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 3 Oct 2022 10:39:42 +0200 Subject: [PATCH] Make clippy happy --- meilisearch-lib/src/tasks/task_store/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-lib/src/tasks/task_store/mod.rs b/meilisearch-lib/src/tasks/task_store/mod.rs index 621d66dd3..55dfe17d3 100644 --- a/meilisearch-lib/src/tasks/task_store/mod.rs +++ b/meilisearch-lib/src/tasks/task_store/mod.rs @@ -117,7 +117,7 @@ impl TaskStore { match filter { Some(filter) => filter .pass(&task) - .then(|| task) + .then_some(task) .ok_or(TaskError::UnexistingTask(id)), None => Ok(task), }