From 944c4a081520a033d32e9228fb2ca1e3c4737814 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 26 Feb 2020 12:54:05 +0100 Subject: [PATCH] minidom: quick-xml::Error now implements Error without failure, so use it Thanks pep.! --- minidom-rs/src/error.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/minidom-rs/src/error.rs b/minidom-rs/src/error.rs index 4a500f2a..38d297de 100644 --- a/minidom-rs/src/error.rs +++ b/minidom-rs/src/error.rs @@ -43,9 +43,7 @@ pub enum Error { impl StdError for Error { fn cause(&self) -> Option<&dyn StdError> { match self { - // TODO: return Some(e) for this case after the merge of - // https://github.com/tafia/quick-xml/pull/170 - Error::XmlError(_e) => None, + Error::XmlError(e) => Some(e), Error::Utf8Error(e) => Some(e), Error::IoError(e) => Some(e), Error::EndOfDocument => None,