Run cargo format

This commit is contained in:
Ian Hobson committed 2023-05-19 10:57:18 +02:00
1 parent 369d261ba0
commit e1b93b24ad
2 files changed
+7 -10

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
#![allow(dead_code)]
use super::fourcc::{FourCC,ReadFourCC, WriteFourCC, LABL_SIG, NOTE_SIG,
ADTL_SIG, LTXT_SIG, DATA_SIG};
use super::fourcc::{
FourCC, ReadFourCC, WriteFourCC, ADTL_SIG, DATA_SIG, LABL_SIG, LTXT_SIG, NOTE_SIG,
};
use super::list_form::collect_list_form;
+4 -8
View File
@@ -261,28 +261,24 @@ impl WaveFmt {
});
let result: (u16, Option<WaveFmtExtended>) = match channel_bitmap {
ch if bits_per_sample != container_bits_per_sample => {
(
ch if bits_per_sample != container_bits_per_sample => (
0xFFFE,
Some(WaveFmtExtended {
valid_bits_per_sample: bits_per_sample,
channel_mask: ch,
type_guid: UUID_PCM,
}),
)
}
),
0b0100 => (0x0001, None),
0b0011 => (0x0001, None),
ch => {
(
ch => (
0xFFFE,
Some(WaveFmtExtended {
valid_bits_per_sample: bits_per_sample,
channel_mask: ch,
type_guid: UUID_PCM,
}),
)
}
),
};
let (tag, extformat) = result;