Replace tokio_xmpp::stream_features with parsers
This commit is contained in:
parent
5110d5fa96
commit
b9fc15977b
8 changed files with 23 additions and 64 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue