minidom: quick-xml::Error now implements Error without failure, so use it

Thanks pep.!
This commit is contained in:
Emmanuel Gil Peyrot 2020-02-26 12:54:05 +01:00
parent 280ce6c458
commit 944c4a0815

View file

@ -43,9 +43,7 @@ pub enum Error {
impl StdError for Error { impl StdError for Error {
fn cause(&self) -> Option<&dyn StdError> { fn cause(&self) -> Option<&dyn StdError> {
match self { match self {
// TODO: return Some(e) for this case after the merge of Error::XmlError(e) => Some(e),
// https://github.com/tafia/quick-xml/pull/170
Error::XmlError(_e) => None,
Error::Utf8Error(e) => Some(e), Error::Utf8Error(e) => Some(e),
Error::IoError(e) => Some(e), Error::IoError(e) => Some(e),
Error::EndOfDocument => None, Error::EndOfDocument => None,