From 708dab6e0ff8c2dab5cac39a1f64a5e391c32137 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 21 Jun 2022 17:22:20 +0200 Subject: fix clippy --- src/util/background/worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/background/worker.rs b/src/util/background/worker.rs index 1d4eb3ea..f933fc06 100644 --- a/src/util/background/worker.rs +++ b/src/util/background/worker.rs @@ -193,7 +193,7 @@ impl WorkerHandler { WorkerStatus::Idle => { if *self.stop_signal.borrow() { select! { - new_st = self.worker.wait_for_work(&mut self.stop_signal_worker) => { + new_st = self.worker.wait_for_work(&self.stop_signal_worker) => { self.status = new_st; } _ = tokio::time::sleep(Duration::from_secs(1)) => { @@ -202,7 +202,7 @@ impl WorkerHandler { } } else { select! { - new_st = self.worker.wait_for_work(&mut self.stop_signal_worker) => { + new_st = self.worker.wait_for_work(&self.stop_signal_worker) => { self.status = new_st; } _ = self.stop_signal.changed() => { -- cgit v1.2.3