Skip to content

Commit eb1999d

Browse files
committed
to vec f
1 parent 402351a commit eb1999d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-proto/src/transform/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ pub mod tonic {
250250
zero_count: dp.zero_count(),
251251
positive: Some(TonicBuckets {
252252
offset: dp.positive_bucket().offset(),
253-
bucket_counts: dp.positive_bucket().counts().iter().copied().collect(),
253+
bucket_counts: dp.positive_bucket().counts().to_vec(),
254254
}),
255255
negative: Some(TonicBuckets {
256256
offset: dp.negative_bucket().offset(),
257-
bucket_counts: dp.negative_bucket().counts().iter().copied().collect(),
257+
bucket_counts: dp.negative_bucket().counts().to_vec(),
258258
}),
259259
flags: TonicDataPointFlags::default() as u32,
260260
exemplars: dp.exemplars().map(Into::into).collect(),

0 commit comments

Comments
 (0)