Skip to content

Commit

Permalink
fix: Correct clippy lint suggestion part tres
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored and mxpv committed Jul 30, 2024
1 parent e771f15 commit 765111e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/shim/src/synchronous/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ impl Monitor {
topic: topic.clone(),
};
self.subscribers.insert(id, subscriber);
self.topic_subs
.entry(topic)
.or_insert_with(Vec::new)
.push(id);
self.topic_subs.entry(topic).or_default().push(id);
Ok(Subscription { id, rx })
}

Expand Down

0 comments on commit 765111e

Please sign in to comment.