Remove warnings
This commit is contained in:
parent
507d3b111c
commit
2cdba18557
|
@ -150,8 +150,8 @@ pub enum ProcessedFile {
|
||||||
impl ProcessedFile {
|
impl ProcessedFile {
|
||||||
pub fn len(&self) -> usize {
|
pub fn len(&self) -> usize {
|
||||||
match self {
|
match self {
|
||||||
Self::Raw(data) => data.len(),
|
Self::Raw(data) => data.len(),
|
||||||
Self::XAAudio(data) => (data.len()*sector::Mode2Form2::DATA_SIZE),
|
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> {
|
pub fn find_attribute<'b>(attributes: Attributes<'b>, name: &[u8]) -> Result<Option<Attribute<'b>>, Error> {
|
||||||
for attribute in attributes {
|
for attribute in attributes {
|
||||||
match attribute {
|
match attribute {
|
||||||
Ok(attribute) => (
|
Ok(attribute) => {
|
||||||
if attribute.key == name {
|
if attribute.key == name {
|
||||||
return Ok(Some(attribute));
|
return Ok(Some(attribute));
|
||||||
}
|
}
|
||||||
),
|
},
|
||||||
|
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
return Err(Error::GenericError(error.to_string()));
|
return Err(Error::GenericError(error.to_string()));
|
||||||
|
|
Loading…
Reference in New Issue