Skip to content

Commit

Permalink
pacify rustc 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 28, 2018
1 parent 252fadd commit bb9efd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl<W> WavWriter<W>
FmtKind::PcmWaveFormat
};

let chunks_len = chunks.iter().map(|c| ((c.1.len()+1)/2)*2 + 8).sum::<usize>() as u32;
let chunks_len = chunks.iter().fold(0, |acc, c| acc + 8 + (c.1.len()+1)/2*2) as u32;

let mut writer = WavWriter {
spec: spec,
Expand Down

0 comments on commit bb9efd6

Please sign in to comment.