xmpp-parsers: Replace all instances of bool attributes with bool

These bring basically nothing, so we can throw them away alongside their
generator macro.
This commit is contained in:
Emmanuel Gil Peyrot 2024-08-03 20:02:06 +02:00 committed by xmpp ftw
commit 866991bda5
10 changed files with 28 additions and 141 deletions

View file

@ -160,13 +160,6 @@ pub struct PublishOptions {
pub form: Option<DataForm>,
}
generate_attribute!(
/// Whether a retract request should notify subscribers or not.
Notify,
"notify",
bool
);
/// A request to retract some items from a node.
#[derive(FromXml, AsXml, Debug, PartialEq, Clone)]
#[xml(namespace = ns::PUBSUB, name = "retract")]
@ -177,7 +170,7 @@ pub struct Retract {
/// Whether a retract request should notify subscribers or not.
#[xml(attribute(default))]
pub notify: Notify,
pub notify: bool,
/// The items affected by this request.
#[xml(child(n = ..))]