Skip to content

Commit 150ec63

Browse files
bryantbiggsmxpv
authored andcommitted
fix: Correct clippy lint suggestion
1 parent ab17df0 commit 150ec63

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/shim/src/asynchronous/monitor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ impl Monitor {
8787
};
8888

8989
self.subscribers.insert(id, subscriber);
90-
self.topic_subs
91-
.entry(topic)
92-
.or_insert_with(Vec::new)
93-
.push(id);
90+
self.topic_subs.entry(topic).or_default().push(id);
9491
Ok(Subscription { id, rx })
9592
}
9693

0 commit comments

Comments
 (0)