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,