diff --git a/src/metrics/mod.rs b/src/metrics/mod.rs index 602bfaab..f374cceb 100644 --- a/src/metrics/mod.rs +++ b/src/metrics/mod.rs @@ -83,6 +83,7 @@ impl Counters { } } +#[allow(clippy::enum_variant_names)] #[derive(Eq, Hash, PartialEq, Copy, Clone)] pub enum Histograms { PubsubLatency, diff --git a/src/output/mod.rs b/src/output/mod.rs index 3304cf8e..70453977 100644 --- a/src/output/mod.rs +++ b/src/output/mod.rs @@ -324,7 +324,7 @@ pub fn json(config: Config, ratelimit: Option<&Ratelimiter>) { response_latency: RESPONSE_LATENCY .snapshot() .map(|snapshot| rpcperf_dataspec::Histogram::from(&snapshot)) - .unwrap_or(Default::default()), + .unwrap_or_default(), }, pubsub: PubsubStats { publishers: Publishers {