Replace xml-rs bits by quickxml in Error
This commit is contained in:
parent
99a4ad5cac
commit
5e58956408
1 changed files with 1 additions and 9 deletions
10
src/error.rs
10
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<TcpStream>),
|
||||
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 {
|
||||
fn from(err: io::Error) -> Error {
|
||||
Error::IoError(err)
|
||||
|
|
Loading…
Reference in a new issue