Apply clippy suggestion

This commit is contained in:
Dirkjan Ochtman 2022-06-09 10:44:33 +02:00
parent b39f511128
commit 262840a12c
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ pub trait FromXml<'xml>: Sized {
pub trait FromXmlOwned: for<'xml> FromXml<'xml> {}
#[allow(dead_code)]
struct State<'a> {
prefix: HashMap<&'a str, &'a str>,
}

View File

@ -33,7 +33,7 @@ impl<'a> Parse for Option<Result<xmlparser::Token<'a>, xmlparser::Error>> {
Some(Ok(Token::ElementEnd { end, .. })) => match end {
ElementEnd::Open => todo!(),
ElementEnd::Close(_, _) => todo!(),
ElementEnd::Empty => return Ok(()),
ElementEnd::Empty => Ok(()),
},
Some(Ok(_)) => Err(Error::UnexpectedValue),
Some(Err(err)) => Err(err.into()),