From 5e58956408f6e2b2f0f105d0773e2e42ce9b284d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 28 Dec 2017 04:06:40 +0100 Subject: [PATCH] Replace xml-rs bits by quickxml in Error --- src/error.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/error.rs b/src/error.rs index f27e94ed..db1a8b6c 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)