We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5027c30 commit 6079276Copy full SHA for 6079276
src/lib.rs
@@ -59,8 +59,8 @@ pub fn encode(file: fs::File, wav_output: impl AsRef<path::Path>) -> Result<()>
59
/// ```
60
pub fn decode(file: impl AsRef<path::Path>, output: impl AsRef<path::Path>) -> Result<()> {
61
utils::check_file_size(&fs::File::open(&file)?)?;
62
- let mut reader = hound::WavReader::open(file).unwrap();
63
- let mut writer = BufWriter::new(fs::File::create(output).unwrap());
+ let mut reader = hound::WavReader::open(file)?;
+ let mut writer = BufWriter::new(fs::File::create(output)?);
64
for sample in reader.samples() {
65
writer.write_i16(sample?)?;
66
}
0 commit comments