Replace tokio_xmpp::stream_features with parsers

This commit is contained in:
xmppftw xmppftw 2024-08-01 17:54:00 +02:00 committed by Link Mauve
commit b9fc15977b
8 changed files with 23 additions and 64 deletions

View file

@ -23,7 +23,13 @@ pub async fn auth<S: AsyncRead + AsyncWrite + Unpin>(
Box::new(|| Box::new(Anonymous::new())),
];
let remote_mechs: HashSet<String> = stream.stream_features.sasl_mechanisms()?.collect();
let remote_mechs: HashSet<String> = stream
.stream_features
.sasl_mechanisms
.mechanisms
.iter()
.map(|item| item.mechanism.clone())
.collect();
for local_mech in local_mechs {
let mut mechanism = local_mech();