mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
Fix build warnings
This commit is contained in:
@@ -186,9 +186,9 @@ impl RawAdtlMember {
|
||||
// It seems like all this casing could be done with traits
|
||||
for member in members.iter() {
|
||||
let (fcc, buf) = match member {
|
||||
RawAdtlMember::Label(l) => ((LABL_SIG, l.write_to())),
|
||||
RawAdtlMember::Note(n) => ((NOTE_SIG, n.write_to())),
|
||||
RawAdtlMember::LabeledText(t) => ((LTXT_SIG, t.write_to())),
|
||||
RawAdtlMember::Label(l) => (LABL_SIG, l.write_to()),
|
||||
RawAdtlMember::Note(n) => (NOTE_SIG, n.write_to()),
|
||||
RawAdtlMember::LabeledText(t) => (LTXT_SIG, t.write_to()),
|
||||
RawAdtlMember::Unrecognized(f) => (*f, vec![0u8; 0]), // <-- this is a dopey case but here for completeness
|
||||
};
|
||||
w.write_fourcc(fcc).unwrap();
|
||||
|
||||
@@ -457,10 +457,10 @@ impl<T> WriteWavAudioData for T
|
||||
where
|
||||
T: std::io::Write,
|
||||
{
|
||||
fn write_i32_frames(&mut self, format: WaveFmt, _: &[i32]) -> Result<usize, std::io::Error> {
|
||||
fn write_i32_frames(&mut self, _format: WaveFmt, _: &[i32]) -> Result<usize, std::io::Error> {
|
||||
todo!()
|
||||
}
|
||||
fn write_f32_frames(&mut self, format: WaveFmt, _: &[f32]) -> Result<usize, std::io::Error> {
|
||||
fn write_f32_frames(&mut self, _format: WaveFmt, _: &[f32]) -> Result<usize, std::io::Error> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user