Apply clippy suggestion
This commit is contained in:
parent
b39f511128
commit
262840a12c
|
@ -25,6 +25,7 @@ pub trait FromXml<'xml>: Sized {
|
||||||
|
|
||||||
pub trait FromXmlOwned: for<'xml> FromXml<'xml> {}
|
pub trait FromXmlOwned: for<'xml> FromXml<'xml> {}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
struct State<'a> {
|
struct State<'a> {
|
||||||
prefix: HashMap<&'a str, &'a str>,
|
prefix: HashMap<&'a str, &'a str>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ impl<'a> Parse for Option<Result<xmlparser::Token<'a>, xmlparser::Error>> {
|
||||||
Some(Ok(Token::ElementEnd { end, .. })) => match end {
|
Some(Ok(Token::ElementEnd { end, .. })) => match end {
|
||||||
ElementEnd::Open => todo!(),
|
ElementEnd::Open => todo!(),
|
||||||
ElementEnd::Close(_, _) => todo!(),
|
ElementEnd::Close(_, _) => todo!(),
|
||||||
ElementEnd::Empty => return Ok(()),
|
ElementEnd::Empty => Ok(()),
|
||||||
},
|
},
|
||||||
Some(Ok(_)) => Err(Error::UnexpectedValue),
|
Some(Ok(_)) => Err(Error::UnexpectedValue),
|
||||||
Some(Err(err)) => Err(err.into()),
|
Some(Err(err)) => Err(err.into()),
|
||||||
|
|
Loading…
Reference in New Issue