Make clippy happy

This commit is contained in:
Kerollmops 2022-10-03 10:39:42 +02:00
parent 2827ff7957
commit 135f656e8f
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

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