Remove warnings

This commit is contained in:
jaby 2022-11-11 15:29:08 +01:00
parent 451c066423
commit 8f2359ffc6
2 changed files with 4 additions and 4 deletions

View File

@ -150,8 +150,8 @@ pub enum ProcessedFile {
impl ProcessedFile {
pub fn len(&self) -> usize {
match self {
Self::Raw(data) => data.len(),
Self::XAAudio(data) => (data.len()*sector::Mode2Form2::DATA_SIZE),
Self::Raw(data) => data.len(),
Self::XAAudio(data) => data.len()*sector::Mode2Form2::DATA_SIZE,
}
}

View File

@ -57,11 +57,11 @@ impl<'a> XMLReader<'a> {
pub fn find_attribute<'b>(attributes: Attributes<'b>, name: &[u8]) -> Result<Option<Attribute<'b>>, Error> {
for attribute in attributes {
match attribute {
Ok(attribute) => (
Ok(attribute) => {
if attribute.key == name {
return Ok(Some(attribute));
}
),
},
Err(error) => {
return Err(Error::GenericError(error.to_string()));