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

Emmanuel Gil Peyrot created

Thanks pep.!

Change summary

minidom-rs/src/error.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Detailed changes

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,