diff --git a/src/histogram.rs b/src/histogram.rs index f9d6e9a..e4c60ec 100644 --- a/src/histogram.rs +++ b/src/histogram.rs @@ -226,7 +226,7 @@ macro_rules! define_histogram { impl ::core::ops::MulAssign for Histogram { #[inline] fn mul_assign(&mut self, other: u64) { - for x in self.bin.iter_mut() { + for x in &mut self.bin[..] { *x *= other; } }