xmpp-parsers: Make Priority’s inner i8 pub

We forgot to make it pub before, but should have.

This was a regression from 893a2f8e47,
when we converted it to xso.

Fixes #166.
This commit is contained in:
Link Mauve 2025-12-25 01:07:35 +01:00
commit f1e5ac6ac8
2 changed files with 4 additions and 1 deletions

View file

@ -4,6 +4,9 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
- The type of jingle_rtp::Description::ssrc has been changed from
Option<String> to Option<u32>, in accordance with XEP-0167 version
1.2.3 and RFC3550. (!602)
* Improvements:
- Make Prioritys inner i8 pub, which had been broken since the
conversion to xso. (!632)
Version 0.22.0:
2025-10-28 pep <pep@bouah.net>

View file

@ -64,7 +64,7 @@ type Status = String;
/// messages addressed to the bare JID.
#[derive(FromXml, AsXml, Debug, Default, Clone, PartialEq)]
#[xml(namespace = ns::DEFAULT_NS, name = "priority")]
pub struct Priority(#[xml(text)] i8);
pub struct Priority(#[xml(text)] pub i8);
/// Accepted values for the 'type' attribute of a presence.
#[derive(Debug, Default, Clone, PartialEq)]