Remove warnings
This commit is contained in:
parent
451c066423
commit
8f2359ffc6
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue