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:
parent
45be2b34f0
commit
866991bda5
10 changed files with 28 additions and 141 deletions
|
|
@ -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 = ..))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue