Replace xml-rs bits by quickxml in Error

This commit is contained in:
Maxime “pep” Buquet 2017-12-28 04:06:40 +01:00
parent 99a4ad5cac
commit 5e58956408

View file

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