xmpp-parsers: Simplify StreamFeatures::sasl_mechanisms

This was already just a wrapper around a Vec<String>, but we can do away
with the wrapper thanks to #[xml(extract)].

I’ve also replaced Vec with BTreeSet, since that corresponds better to
how the mechanisms are.
This commit is contained in:
Link Mauve 2026-01-09 00:17:17 +01:00 committed by Jonas Schäfer
commit ca6e04f931
3 changed files with 19 additions and 27 deletions

View file

@ -9,6 +9,8 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
- The ibr::Query struct has been split into FieldsQuery, RemoveQuery,
LegacyQuery and FormsQuery, to make it reflect more how it gets
used in XMPP.
- Remove the unnecessary SaslMechanisms struct, to directly extract
SASL mechanisms in a Vec<String> in StreamFeatures.
* Improvements:
- Make Prioritys inner i8 pub, which had been broken since the
conversion to xso. (!632)