Skip to content

Commit

Permalink
Avoid unecessary let (clippy lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbodd committed Dec 17, 2024
1 parent 8b39545 commit 651913e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions opentelemetry-etw-metrics/benches/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn create_resource_metrics() -> ResourceMetrics {
}
}

let resource_metrics = ResourceMetrics {
ResourceMetrics {
resource: Resource::new(vec![KeyValue::new("service.name", "my-service")]),
scope_metrics: vec![ScopeMetrics {
scope: InstrumentationScope::default(),
Expand All @@ -73,9 +73,7 @@ fn create_resource_metrics() -> ResourceMetrics {
create_metric(),
],
}],
};

resource_metrics
}
}

fn criterion_benchmark(c: &mut Criterion) {
Expand Down

0 comments on commit 651913e

Please sign in to comment.