Make clippy happy

This commit is contained in:
Kerollmops
2022-10-03 10:39:42 +02:00
parent 2827ff7957
commit 135f656e8f

View File

@ -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),
}