From c04934ee0d6640e6df31aeedefa90726ebb836b6 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Thu, 4 Jul 2024 00:09:44 -0700 Subject: [PATCH] fix: formatting in `src/` and `tests/` --- src/decoder/wav.rs | 6 +++--- tests/flac_test.rs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/decoder/wav.rs b/src/decoder/wav.rs index b4e3357..d87ceb9 100644 --- a/src/decoder/wav.rs +++ b/src/decoder/wav.rs @@ -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}") + } } } diff --git a/tests/flac_test.rs b/tests/flac_test.rs index b519824..db920ba 100644 --- a/tests/flac_test.rs +++ b/tests/flac_test.rs @@ -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")))]