Make clippy happy

This commit is contained in:
Kerollmops
2022-11-14 17:37:18 +01:00
parent 5cfcdbb55a
commit 0331fc7c71
4 changed files with 20 additions and 20 deletions

View File

@ -213,7 +213,7 @@ impl TaskQueue {
let head = self.queue.pop()?;
let result = {
let mut ref_head = head.borrow_mut();
f(&mut *ref_head)
f(&mut ref_head)
};
if !head.borrow().tasks.is_empty() {
// After being mutated, the head is reinserted to the correct position.

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