Skip to content

Commit

Permalink
address clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Oct 11, 2023
1 parent 9973df7 commit 82cecf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ impl Counters {
}
}

#[allow(clippy::enum_variant_names)]
#[derive(Eq, Hash, PartialEq, Copy, Clone)]
pub enum Histograms {
PubsubLatency,
Expand Down
2 changes: 1 addition & 1 deletion src/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 82cecf8

Please sign in to comment.