From 0ad47a787093635603fbe241984dd19b1cbfe95f Mon Sep 17 00:00:00 2001 From: Mihir Nanavati Date: Wed, 11 Oct 2023 12:21:46 -0400 Subject: [PATCH] clippy nonsense --- lib/dataspec/src/histogram.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dataspec/src/histogram.rs b/lib/dataspec/src/histogram.rs index 3d102bd6..ba51b8b9 100644 --- a/lib/dataspec/src/histogram.rs +++ b/lib/dataspec/src/histogram.rs @@ -41,6 +41,7 @@ impl Histogram { /// /// Both histograms must have the same configuration parameters. /// Buckets which have values in both histograms are allowed to wrap. + #[allow(clippy::comparison_chain)] pub fn merge(&self, h: &Histogram) -> Result { if self.m != h.m || self.r != h.r || self.n != h.n { return Err(Error::MismatchedParams); @@ -84,7 +85,7 @@ impl Histogram { histogram.count.extend(&h.count[i..h.count.len()]); } - return Ok(histogram); + Ok(histogram) } }