Skip to content

Commit e89805e

Browse files
committed
use slice
1 parent 6829ed1 commit e89805e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/metrics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ mod tests {
867867
}
868868

869869
fn find_scope_metric<'a>(
870-
metrics: &'a Vec<ScopeMetrics>,
870+
metrics: &'a [ScopeMetrics],
871871
name: &'a str,
872872
) -> Option<&'a ScopeMetrics> {
873873
metrics.iter().find(|&scope_metric| scope_metric.scope.name == name)

0 commit comments

Comments
 (0)