clippy: Collapse nested else/if into else if

This commit is contained in:
Ian Hobson
2023-05-12 16:52:06 +02:00
parent 0c46a0e21f
commit 60a3eac072

View File

@@ -124,8 +124,7 @@ where
self.inner self.inner
.inner .inner
.write_u32::<LittleEndian>(self.length as u32)?; .write_u32::<LittleEndian>(self.length as u32)?;
} else { } else if self.ident == DATA_SIG {
if self.ident == DATA_SIG {
let data_chunk_64bit_field_offset = 8 + 4 + 8 + 8; let data_chunk_64bit_field_offset = 8 + 4 + 8 + 8;
self.inner self.inner
.inner .inner
@@ -140,7 +139,6 @@ where
} else { } else {
todo!("FIXME RF64 wave writing is not yet supported for chunks other than `data`") todo!("FIXME RF64 wave writing is not yet supported for chunks other than `data`")
} }
}
Ok(()) Ok(())
} }