update to the latest base64

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-30 02:04:11 +01:00
parent e27ae954fb
commit b8fda8ea6a
2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ gitlab = { repository = "lumi/xmpp-rs" }
[dependencies] [dependencies]
xml-rs = "0.3.6" xml-rs = "0.3.6"
openssl = "0.9.7" openssl = "0.9.7"
base64 = "0.4.0" base64 = "0.5.2"
minidom = "0.2.0" minidom = "0.2.0"
jid = "0.2.0" jid = "0.2.0"
sasl = "0.3.0" sasl = "0.3.0"

View file

@ -14,7 +14,7 @@ use xml::writer::Error as EmitterError;
use minidom::Error as MinidomError; use minidom::Error as MinidomError;
use base64::Base64Error; use base64::DecodeError;
use components::sasl_error::SaslError; use components::sasl_error::SaslError;
@ -27,7 +27,7 @@ pub enum Error {
HandshakeError(HandshakeError<TcpStream>), HandshakeError(HandshakeError<TcpStream>),
OpenSslErrorStack(ErrorStack), OpenSslErrorStack(ErrorStack),
MinidomError(MinidomError), MinidomError(MinidomError),
Base64Error(Base64Error), Base64Error(DecodeError),
SaslError(Option<String>), SaslError(Option<String>),
XmppSaslError(SaslError), XmppSaslError(SaslError),
FormatError(FormatError), FormatError(FormatError),
@ -71,8 +71,8 @@ impl From<MinidomError> for Error {
} }
} }
impl From<Base64Error> for Error { impl From<DecodeError> for Error {
fn from(err: Base64Error) -> Error { fn from(err: DecodeError) -> Error {
Error::Base64Error(err) Error::Base64Error(err)
} }
} }