mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
Run cargo format
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use super::fourcc::{FourCC,ReadFourCC, WriteFourCC, LABL_SIG, NOTE_SIG,
|
use super::fourcc::{
|
||||||
ADTL_SIG, LTXT_SIG, DATA_SIG};
|
FourCC, ReadFourCC, WriteFourCC, ADTL_SIG, DATA_SIG, LABL_SIG, LTXT_SIG, NOTE_SIG,
|
||||||
|
};
|
||||||
|
|
||||||
use super::list_form::collect_list_form;
|
use super::list_form::collect_list_form;
|
||||||
|
|
||||||
|
|||||||
12
src/fmt.rs
12
src/fmt.rs
@@ -261,28 +261,24 @@ impl WaveFmt {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let result: (u16, Option<WaveFmtExtended>) = match channel_bitmap {
|
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,
|
0xFFFE,
|
||||||
Some(WaveFmtExtended {
|
Some(WaveFmtExtended {
|
||||||
valid_bits_per_sample: bits_per_sample,
|
valid_bits_per_sample: bits_per_sample,
|
||||||
channel_mask: ch,
|
channel_mask: ch,
|
||||||
type_guid: UUID_PCM,
|
type_guid: UUID_PCM,
|
||||||
}),
|
}),
|
||||||
)
|
),
|
||||||
}
|
|
||||||
0b0100 => (0x0001, None),
|
0b0100 => (0x0001, None),
|
||||||
0b0011 => (0x0001, None),
|
0b0011 => (0x0001, None),
|
||||||
ch => {
|
ch => (
|
||||||
(
|
|
||||||
0xFFFE,
|
0xFFFE,
|
||||||
Some(WaveFmtExtended {
|
Some(WaveFmtExtended {
|
||||||
valid_bits_per_sample: bits_per_sample,
|
valid_bits_per_sample: bits_per_sample,
|
||||||
channel_mask: ch,
|
channel_mask: ch,
|
||||||
type_guid: UUID_PCM,
|
type_guid: UUID_PCM,
|
||||||
}),
|
}),
|
||||||
)
|
),
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let (tag, extformat) = result;
|
let (tag, extformat) = result;
|
||||||
|
|||||||
Reference in New Issue
Block a user