fix clippy warnings
This commit is contained in:
parent
6b9e9d653c
commit
bf4bfba863
@ -7,7 +7,7 @@ use axum::{
|
||||
extract::Query,
|
||||
http::HeaderValue,
|
||||
routing::{get, post},
|
||||
Extension, Router,
|
||||
Router,
|
||||
};
|
||||
use hyper::{
|
||||
header::{CONTENT_TYPE, USER_AGENT},
|
||||
|
@ -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 }
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user