This commit is contained in:
sagudev 2022-01-24 16:38:18 +01:00
parent 6325665ab2
commit 3d26e34514

View file

@ -4,8 +4,7 @@ use std::path::Path;
use hound::WavReader; use hound::WavReader;
use lofty::iff::WavFile; use lofty::iff::WavFile;
use lofty::AudioFile; use lofty::{AudioFile, Result};
use lofty::Result;
fn get_properties(path: &Path) -> Result<<lofty::iff::WavFile as AudioFile>::Properties> { fn get_properties(path: &Path) -> Result<<lofty::iff::WavFile as AudioFile>::Properties> {
let mut f = File::open(path).unwrap(); let mut f = File::open(path).unwrap();