xmpp-parsers: Use the new lang meta everywhere
Stop parsing xml:lang manually, instead use the #[xml(lang)] meta which tracks it using the XML semantics, inheriting it from the most recent ancestor. skip-changelog: This isn’t a user-facing change.
This commit is contained in:
parent
dc8c3eac4c
commit
3920ad3819
8 changed files with 12 additions and 9 deletions
|
|
@ -163,7 +163,7 @@ pub struct Presence {
|
|||
|
||||
/// A localised list of statuses defined in this presence.
|
||||
#[xml(extract(n = .., name = "status", fields(
|
||||
attribute(type_ = Lang, name = "xml:lang", default),
|
||||
lang(type_ = Lang, default),
|
||||
text(type_ = String),
|
||||
)))]
|
||||
pub statuses: BTreeMap<Lang, Status>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue