diff --git a/audio/src/range_set.rs b/audio/src/range_set.rs index 8712dfd4..d01d888e 100644 --- a/audio/src/range_set.rs +++ b/audio/src/range_set.rs @@ -54,7 +54,7 @@ impl RangeSet { } pub fn len(&self) -> usize { - self.ranges.iter().map(|r| r.length).fold(0, std::ops::Add::add) + self.ranges.iter().map(|r| r.length).sum() } pub fn get_range(&self, index: usize) -> Range {