xmpp-parsers: Make DiscoInfoResult::features a BTreeSet
Features must never be duplicated, so we can use a BTreeSet instead of a Vec to be nicer for users. It makes the internal API for computing caps and ecaps2 a bit worse, because it was expecting a slice directly, so for now let’s collect the BTreeSet into a Vec when computing the thing. A refactor to use Iterator might make it better eventually, but I won’t work on that before profiling it.
This commit is contained in:
parent
946d96d7c8
commit
bc88134c41
6 changed files with 20 additions and 9 deletions
|
|
@ -13,7 +13,8 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
|
|||
- Remove the unnecessary SaslMechanisms struct, to directly extract
|
||||
SASL mechanisms in a Vec<String> in StreamFeatures.
|
||||
- The type of disco::DiscoInfoResult::features changed from
|
||||
Vec<Feature> to Vec<String>, this lets us remove Feature as well.
|
||||
Vec<Feature> to BTreeSet<String>, this lets us remove Feature as
|
||||
well.
|
||||
- bind::BindFeature::required is now a bool, thanks to xso’s flag.
|
||||
- jingle_rtp::Description::rtcp_mux is now a bool flag too.
|
||||
- stream_limits::Limits now extract directly to NonZeroU32.
|
||||
|
|
|
|||
Loading…
Reference in a new issue