Update to jid-rs 0.2.3, which implements IntoAttributeValue on Jid.
This commit is contained in:
parent
d55fa8e5dd
commit
99b9525e6f
12 changed files with 21 additions and 21 deletions
|
|
@ -31,7 +31,7 @@ impl From<Item> for Element {
|
|||
.ns(ns::PUBSUB_EVENT)
|
||||
.attr("id", item.id)
|
||||
.attr("node", item.node)
|
||||
.attr("publisher", item.publisher.map(String::from))
|
||||
.attr("publisher", item.publisher)
|
||||
.append(item.payload)
|
||||
.build()
|
||||
}
|
||||
|
|
@ -255,7 +255,7 @@ impl From<PubSubEvent> for Element {
|
|||
.ns(ns::PUBSUB_EVENT)
|
||||
.attr("node", node)
|
||||
.attr("expiry", expiry.map(|expiry| expiry.to_rfc3339()))
|
||||
.attr("jid", jid.map(String::from))
|
||||
.attr("jid", jid)
|
||||
.attr("subid", subid)
|
||||
.attr("subscription", subscription)
|
||||
.build()
|
||||
|
|
|
|||
Loading…
Reference in a new issue