fix: formatting in src/ and tests/

This commit is contained in:
Hamir Mahal 2024-07-04 00:09:44 -07:00
parent 9b2da72bd0
commit c04934ee0d
No known key found for this signature in database
2 changed files with 4 additions and 5 deletions

View file

@ -90,9 +90,9 @@ where
self.samples_read += 1;
i32_to_i16(value.unwrap_or(0))
}),
(sample_format, bits_per_sample) => panic!(
"Unimplemented wav spec: {sample_format:?}, {bits_per_sample}"
),
(sample_format, bits_per_sample) => {
panic!("Unimplemented wav spec: {sample_format:?}, {bits_per_sample}")
}
}
}

View file

@ -17,8 +17,7 @@ fn test_flac_encodings() {
// 24 bit FLAC file exported from Audacity (2 channels, various compression levels)
for level in &[0, 5, 8] {
let file =
std::fs::File::open(format!("assets/audacity24bit_level{level}.flac")).unwrap();
let file = std::fs::File::open(format!("assets/audacity24bit_level{level}.flac")).unwrap();
let mut decoder = rodio::Decoder::new(BufReader::new(file)).unwrap();
assert!(decoder.any(|x| x != 0));
#[cfg(all(feature = "flac", not(feature = "symphonia-flac")))]