tokio-xmpp: Bump sasl to 0.5

This commit is contained in:
Emmanuel Gil Peyrot 2020-12-26 20:11:23 +01:00
commit 521bf6e7d7
3 changed files with 4 additions and 3 deletions

View file

@ -29,7 +29,7 @@ pub async fn auth<S: AsyncRead + AsyncWrite + Unpin>(
for local_mech in local_mechs {
let mut mechanism = local_mech();
if remote_mechs.contains(mechanism.name()) {
let initial = mechanism.initial().map_err(AuthError::Sasl)?;
let initial = mechanism.initial();
let mechanism_name =
XMPPMechanism::from_str(mechanism.name()).map_err(ProtocolError::Parsers)?;