Skip to content

Commit 9f85d5c

Browse files
authored
fix(gossip): correct clippy warning
Relates to #5960. Pull-Request: #5965.
1 parent 240de9f commit 9f85d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocols/gossipsub/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,6 @@ struct HistBuilder {
731731

732732
impl MetricConstructor<Histogram> for HistBuilder {
733733
fn new_metric(&self) -> Histogram {
734-
Histogram::new(self.buckets.clone().into_iter())
734+
Histogram::new(self.buckets.clone())
735735
}
736736
}

0 commit comments

Comments
 (0)