Skip to content
Snippets Groups Projects
Commit 10cd358e authored by Nikolay Volf's avatar Nikolay Volf Committed by GitHub
Browse files

fix warnings in grafana module (#4486)

parent 205ddec3
No related merge requests found
......@@ -71,10 +71,15 @@ pub fn record_metrics_slice(metrics: &[(&str, f32)]) -> Result<(), Error> {
/// Error type that can be returned by either `record_metrics` or `run_server`.
#[derive(Debug, derive_more::Display, derive_more::From)]
pub enum Error {
/// Hyper internal error.
Hyper(hyper::Error),
/// Serialization/deserialization error.
Serde(serde_json::Error),
/// Http request error.
Http(hyper::http::Error),
/// Timestamp error.
Timestamp(TryFromIntError),
/// i/o error.
Io(std::io::Error)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment