xmpp-parsers: Switch from zero-sized types to #[xml(flag)]

That way we can simply use true/false, instead of
Some(TheZeroSizedType)/None.
This commit is contained in:
Emmanuel Gil Peyrot 2025-01-25 19:39:49 +01:00
commit 244a9bbbf2
6 changed files with 19 additions and 40 deletions

View file

@ -129,7 +129,7 @@ mod tests {
assert_eq!(features.can_bind(), false);
assert_eq!(features.sasl_mechanisms.mechanisms.len(), 0);
assert_eq!(features.can_starttls(), true);
assert_eq!(features.starttls.unwrap().required.is_some(), true);
assert_eq!(features.starttls.unwrap().required, true);
}
#[test]