From 8fb8569912745ea90e8d0dd8313b431774780ad2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 21 Jun 2022 18:04:03 +0200 Subject: fix clippy --- src/table/sync.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/table/sync.rs b/src/table/sync.rs index bdf88782..a331ec75 100644 --- a/src/table/sync.rs +++ b/src/table/sync.rs @@ -597,11 +597,10 @@ impl Worker for SyncWor async fn wait_for_work(&mut self, _must_exit: &watch::Receiver) -> WorkerStatus { select! { - s = self.add_full_sync_rx.recv() => match s { - Some(()) => { + s = self.add_full_sync_rx.recv() => { + if let Some(()) = s { self.add_full_sync(); } - None => (), }, _ = self.ring_recv.changed() => { let new_ring = self.ring_recv.borrow(); -- cgit v1.2.3