aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-21 17:22:20 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-21 17:22:20 +0200
commit708dab6e0ff8c2dab5cac39a1f64a5e391c32137 (patch)
tree571340f4163500fc2e2f5eeb9dd032677d94d723
parent10c886111e304a53be24b29194f2127d91121929 (diff)
downloadgarage-708dab6e0ff8c2dab5cac39a1f64a5e391c32137.tar.gz
garage-708dab6e0ff8c2dab5cac39a1f64a5e391c32137.zip
fix clippy
-rw-r--r--src/util/background/worker.rs4
1 files 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() => {