diff --git a/src/error.rs b/src/error.rs index f27e94e..db1a8b6 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,8 +9,7 @@ use std::net::TcpStream; use openssl::ssl::HandshakeError; use openssl::error::ErrorStack; -use xml::reader::Error as XmlError; -use xml::writer::Error as EmitterError; +use quick_xml::errors::Error as XmlError; use minidom::Error as MinidomError; @@ -22,7 +21,6 @@ use components::sasl_error::SaslError; #[derive(Debug)] pub enum Error { XmlError(XmlError), - EmitterError(EmitterError), IoError(io::Error), HandshakeError(HandshakeError), OpenSslErrorStack(ErrorStack), @@ -41,12 +39,6 @@ impl From for Error { } } -impl From for Error { - fn from(err: EmitterError) -> Error { - Error::EmitterError(err) - } -} - impl From for Error { fn from(err: io::Error) -> Error { Error::IoError(err)