Skip to content

Commit

Permalink
clippy nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirn committed Oct 11, 2023
1 parent aea6f41 commit 50c1cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dataspec/src/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Histogram, Error> {
if self.m != h.m || self.r != h.r || self.n != h.n {
return Err(Error::MismatchedParams);
Expand Down Expand Up @@ -84,7 +85,7 @@ impl Histogram {
histogram.count.extend(&h.count[i..h.count.len()]);
}

return Ok(histogram);
Ok(histogram)
}
}

Expand Down

0 comments on commit 50c1cff

Please sign in to comment.