Update minidom dependency to 0.11
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
0ef4ba7e55
commit
a1ae45add8
22 changed files with 236 additions and 168 deletions
|
|
@ -219,11 +219,11 @@ impl From<SubscribeOptions> for Element {
|
|||
fn from(subscribe_options: SubscribeOptions) -> Element {
|
||||
Element::builder("subscribe-options")
|
||||
.ns(ns::PUBSUB)
|
||||
.append(if subscribe_options.required {
|
||||
.append_all((if subscribe_options.required {
|
||||
vec![Element::builder("required").ns(ns::PUBSUB).build()]
|
||||
} else {
|
||||
vec![]
|
||||
})
|
||||
}).into_iter())
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
|
@ -473,7 +473,7 @@ impl From<PubSub> for Element {
|
|||
fn from(pubsub: PubSub) -> Element {
|
||||
Element::builder("pubsub")
|
||||
.ns(ns::PUBSUB)
|
||||
.append(match pubsub {
|
||||
.append_all((match pubsub {
|
||||
PubSub::Create { create, configure } => {
|
||||
let mut elems = vec![Element::from(create)];
|
||||
if let Some(configure) = configure {
|
||||
|
|
@ -498,7 +498,7 @@ impl From<PubSub> for Element {
|
|||
PubSub::Subscription(subscription) => vec![Element::from(subscription)],
|
||||
PubSub::Subscriptions(subscriptions) => vec![Element::from(subscriptions)],
|
||||
PubSub::Unsubscribe(unsubscribe) => vec![Element::from(unsubscribe)],
|
||||
})
|
||||
}).into_iter())
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue