xmpp-parsers: Switch to #[xml(lang)] wherever it’s possible
So far this new meta doesn’t work for the BTreeMap<Lang, String> pattern, which is often used to provide multiple versions of a payload. skip-changelog: This isn’t a user-facing change.
This commit is contained in:
parent
3f873d2b42
commit
7f0a7b2247
4 changed files with 4 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ pub struct Open {
|
|||
|
||||
/// The default human language for all subsequent stanzas, which will
|
||||
/// be transmitted to other entities for better localisation.
|
||||
#[xml(attribute(default, name = "xml:lang"))]
|
||||
#[xml(lang(default))]
|
||||
pub xml_lang: Option<String>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue