Skip to content

Commit 481fc6b

Browse files
committed
lint
1 parent 464e65f commit 481fc6b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/hotshot/hotshot/src/traits/networking/combined_network.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,11 @@ impl<TYPES: NodeType> ConnectedNetwork<TYPES::SignatureKey> for CombinedNetworks
358358
let secondary = self.secondary().clone();
359359
let primary_message = message.clone();
360360
let secondary_message = message.clone();
361-
let topic_clone = topic.clone();
362361
self.send_both_networks(
363362
message,
364363
async move {
365364
primary
366-
.broadcast_message(primary_message, topic_clone, BroadcastDelay::None)
365+
.broadcast_message(primary_message, topic, BroadcastDelay::None)
367366
.await
368367
},
369368
async move {

crates/hotshot/hotshot/src/traits/networking/memory_network.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl<K: SignatureKey> MemoryNetwork<K> {
153153
for topic in subscribed_topics {
154154
master_map
155155
.subscribed_map
156-
.entry(topic.clone())
156+
.entry(*topic)
157157
.or_default()
158158
.push((pub_key.clone(), mn.clone()));
159159
}

0 commit comments

Comments
 (0)