diff --git a/tests/histogram.rs b/tests/histogram.rs index c9f07ef..d4e3f38 100644 --- a/tests/histogram.rs +++ b/tests/histogram.rs @@ -565,5 +565,5 @@ fn subtract_underflow_guarded_by_per_value_count_check() { fn recorded_only_zeros() { let mut h = Histogram::::new(1).unwrap(); h += 0; - assert_eq!(h.iter_recorded().collect::>().len(), 1); + assert_eq!(h.iter_recorded().count(), 1); }