Skip to content

Commit 765111e

Browse files
bryantbiggsmxpv
authored andcommitted
fix: Correct clippy lint suggestion part tres
1 parent e771f15 commit 765111e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/shim/src/synchronous/monitor.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ impl Monitor {
8383
topic: topic.clone(),
8484
};
8585
self.subscribers.insert(id, subscriber);
86-
self.topic_subs
87-
.entry(topic)
88-
.or_insert_with(Vec::new)
89-
.push(id);
86+
self.topic_subs.entry(topic).or_default().push(id);
9087
Ok(Subscription { id, rx })
9188
}
9289

0 commit comments

Comments
 (0)