Skip to content

Commit

Permalink
lint: avoid get().is_none() when contains_key() suffices
Browse files Browse the repository at this point in the history
flagged by clippy
  • Loading branch information
black-puppydog committed Jul 21, 2024
1 parent 185247e commit 810b1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solar/src/actors/replication/ebt/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 810b1a3

Please sign in to comment.