Skip to content

Commit

Permalink
use slice
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas committed Mar 5, 2024
1 parent 6829ed1 commit e89805e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ mod tests {
}

fn find_scope_metric<'a>(
metrics: &'a Vec<ScopeMetrics>,
metrics: &'a [ScopeMetrics],
name: &'a str,
) -> Option<&'a ScopeMetrics> {
metrics.iter().find(|&scope_metric| scope_metric.scope.name == name)
Expand Down

0 comments on commit e89805e

Please sign in to comment.