Skip to content

Commit 0daafff

Browse files
committed
chore: removes redundant clones
1 parent c36983a commit 0daafff

File tree

2 files changed

+2
-2
lines changed
  • common/infrastructure/src
  • modules/ingestor/src/service/advisory/cve

2 files changed

+2
-2
lines changed

common/infrastructure/src/otel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fn init_otlp_metrics(name: &str) {
162162
println!("Using OTEL Collector with Prometheus as the back-end.");
163163
println!("{:#?}", provider);
164164

165-
set_meter_provider(provider.clone());
165+
set_meter_provider(provider);
166166
}
167167

168168
fn init_otlp_tracing(name: &str) {

modules/ingestor/src/service/advisory/cve/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl<'g> CveLoader<'g> {
288288
published,
289289
modified,
290290
withdrawn,
291-
cwes: cwe.clone(),
291+
cwes: cwe,
292292
},
293293
}
294294
}

0 commit comments

Comments
 (0)