diff --git a/opentelemetry-etw-metrics/benches/exporter.rs b/opentelemetry-etw-metrics/benches/exporter.rs index 5546aa50..bdc4c1c7 100644 --- a/opentelemetry-etw-metrics/benches/exporter.rs +++ b/opentelemetry-etw-metrics/benches/exporter.rs @@ -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(), @@ -73,9 +73,7 @@ fn create_resource_metrics() -> ResourceMetrics { create_metric(), ], }], - }; - - resource_metrics + } } fn criterion_benchmark(c: &mut Criterion) {