From f46db82b7b88bda448d1a47cd3253c817e600560 Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Tue, 17 Dec 2024 12:45:09 -0800 Subject: [PATCH] clippy ding Signed-off-by: Brian L. Troutwine --- lading/src/blackhole/splunk_hec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lading/src/blackhole/splunk_hec.rs b/lading/src/blackhole/splunk_hec.rs index a9b9ce707..e3f279d3a 100644 --- a/lading/src/blackhole/splunk_hec.rs +++ b/lading/src/blackhole/splunk_hec.rs @@ -96,12 +96,12 @@ async fn srv( let (parts, body) = req.into_parts(); let bytes = body.collect().await?.to_bytes(); - counter!("bytes_received", &metric_labels).increment(bytes.len() as u64); + counter!("bytes_received", &*labels).increment(bytes.len() as u64); match crate::codec::decode(parts.headers.get(hyper::header::CONTENT_ENCODING), bytes) { Err(response) => Ok(response), Ok(body) => { - counter!("decoded_bytes_received", &metric_labels).increment(body.len() as u64); + counter!("decoded_bytes_received", &*labels).increment(body.len() as u64); let mut okay = Response::default(); *okay.status_mut() = StatusCode::OK;