diff --git a/nomos-services/http/src/backends/axum.rs b/nomos-services/http/src/backends/axum.rs index 573d3b8f..6e60c681 100644 --- a/nomos-services/http/src/backends/axum.rs +++ b/nomos-services/http/src/backends/axum.rs @@ -7,7 +7,7 @@ use axum::{ extract::Query, http::HeaderValue, routing::{get, post}, - Extension, Router, + Router, }; use hyper::{ header::{CONTENT_TYPE, USER_AGENT}, diff --git a/nomos-services/metrics/src/types.rs b/nomos-services/metrics/src/types.rs index 6583699e..5a4d4309 100644 --- a/nomos-services/metrics/src/types.rs +++ b/nomos-services/metrics/src/types.rs @@ -542,7 +542,7 @@ impl<'de> Deserialize<'de> for Histogram { // TODO: this implementation is not correct because we cannot set samples for histogram, // need to wait prometheus support serde. SerializableHistogramOpts::deserialize(deserializer).map( - |SerializableHistogramOpts { val, opts }| { + |SerializableHistogramOpts { val: _, opts }| { let x = prometheus::Histogram::with_opts(opts.clone()).unwrap(); Self { val: x, opts } },