xso-proc: Allow #[xml(flag)] without params

The namespace defaults to the parent’s namespace, and the name to the
field name, so we can avoid needlessly duplicating that info.
This commit is contained in:
Emmanuel Gil Peyrot 2025-01-25 20:01:08 +01:00
commit fefc898fdf
4 changed files with 9 additions and 7 deletions

View file

@ -139,7 +139,7 @@ pub struct Resumed {
#[xml(namespace = ns::SM, name = "sm")]
pub struct StreamManagement {
/// `<optional/>` flag.
#[xml(flag(name = "optional"))]
#[xml(flag)]
pub optional: bool,
}