mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Replaced .fold(0, add) by .sum()
This commit is contained in:
parent
07514c9dcc
commit
c97fdeb3b4
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue