mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
minidom: quick-xml::Error now implements Error without failure, so use it
Thanks pep.!
This commit is contained in:
parent
280ce6c458
commit
944c4a0815
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue