From 810b1a3bf3b1949cdd4af934d3c185f2dff6de52 Mon Sep 17 00:00:00 2001 From: Daan Wynen Date: Sun, 21 Jul 2024 19:33:23 +0200 Subject: [PATCH] lint: avoid `get().is_none()` when `contains_key()` suffices flagged by clippy --- solar/src/actors/replication/ebt/manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solar/src/actors/replication/ebt/manager.rs b/solar/src/actors/replication/ebt/manager.rs index 64a94d8..5b0b8f4 100644 --- a/solar/src/actors/replication/ebt/manager.rs +++ b/solar/src/actors/replication/ebt/manager.rs @@ -510,7 +510,7 @@ impl EbtManager { // // This indicates that the local peer is acting as the session // requester. - if self.sent_clocks.get(&connection_id).is_none() { + if !self.sent_clocks.contains_key(&connection_id) { let local_clock = self.local_clock.to_owned(); ch_broker .send(BrokerEvent::new(