mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
update to the latest base64
This commit is contained in:
parent
e27ae954fb
commit
b8fda8ea6a
2 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ gitlab = { repository = "lumi/xmpp-rs" }
|
|||
[dependencies]
|
||||
xml-rs = "0.3.6"
|
||||
openssl = "0.9.7"
|
||||
base64 = "0.4.0"
|
||||
base64 = "0.5.2"
|
||||
minidom = "0.2.0"
|
||||
jid = "0.2.0"
|
||||
sasl = "0.3.0"
|
||||
|
|
|
@ -14,7 +14,7 @@ use xml::writer::Error as EmitterError;
|
|||
|
||||
use minidom::Error as MinidomError;
|
||||
|
||||
use base64::Base64Error;
|
||||
use base64::DecodeError;
|
||||
|
||||
use components::sasl_error::SaslError;
|
||||
|
||||
|
@ -27,7 +27,7 @@ pub enum Error {
|
|||
HandshakeError(HandshakeError<TcpStream>),
|
||||
OpenSslErrorStack(ErrorStack),
|
||||
MinidomError(MinidomError),
|
||||
Base64Error(Base64Error),
|
||||
Base64Error(DecodeError),
|
||||
SaslError(Option<String>),
|
||||
XmppSaslError(SaslError),
|
||||
FormatError(FormatError),
|
||||
|
@ -71,8 +71,8 @@ impl From<MinidomError> for Error {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<Base64Error> for Error {
|
||||
fn from(err: Base64Error) -> Error {
|
||||
impl From<DecodeError> for Error {
|
||||
fn from(err: DecodeError) -> Error {
|
||||
Error::Base64Error(err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue