xmpp-parsers: Simplify SASL mechanisms type

These can be a simple String for now.
This commit is contained in:
Emmanuel Gil Peyrot 2024-08-08 14:50:13 +02:00 committed by xmpp ftw
commit 27e4499153
2 changed files with 23 additions and 15 deletions

View file

@ -28,7 +28,7 @@ pub async fn auth<S: AsyncRead + AsyncWrite + Unpin>(
.sasl_mechanisms
.mechanisms
.iter()
.map(|item| item.mechanism.clone())
.cloned()
.collect();
for local_mech in local_mechs {