From f9dee3bf9be74b840993da2dcc120af345871b3a Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Fri, 27 Jul 2018 16:52:01 +0200 Subject: [PATCH] Fix clippy warning --- src/histogram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }