fix String -> &str with clonning

pull/6/head
prplV 2025-03-03 13:52:57 +03:00
parent e7aeb78192
commit 12c98c199c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ pub async fn update_metrics(
let gauge = MetricsProcesser::gauge_from_number(
&i,
&metric_name,
i.clone().desc.unwrap_or_else(|| std::borrow::Cow::Borrowed(&i.id)).into_owned()
&i.desc.clone().unwrap_or_else(|| std::borrow::Cow::Borrowed(&i.id))
);
if let Some(gauge) = gauge {
match state.registry.lock() {