Skip to content

Commit 00ce441

Browse files
committed
fid
1 parent 73347e7 commit 00ce441

File tree

1 file changed

+1
-6
lines changed
  • opentelemetry-sdk/src/metrics

1 file changed

+1
-6
lines changed

opentelemetry-sdk/src/metrics/mod.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -870,12 +870,7 @@ mod tests {
870870
metrics: &'a Vec<ScopeMetrics>,
871871
name: &'a str,
872872
) -> Option<&'a ScopeMetrics> {
873-
for scope_metric in metrics {
874-
if scope_metric.scope.name == name {
875-
return Some(scope_metric);
876-
}
877-
}
878-
None
873+
metrics.iter().find(|&scope_metric| scope_metric.scope.name == name)
879874
}
880875

881876
struct DeltaTemporalitySelector();

0 commit comments

Comments
 (0)