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
|
|
@ -186,7 +186,7 @@ impl From<Actor> for Element {
|
|||
let elem = Element::builder("actor").ns(ns::MUC_USER);
|
||||
|
||||
(match actor {
|
||||
Actor::Jid(jid) => elem.attr("jid", String::from(jid)),
|
||||
Actor::Jid(jid) => elem.attr("jid", jid),
|
||||
Actor::Nick(nick) => elem.attr("nick", nick),
|
||||
}).build()
|
||||
}
|
||||
|
|
@ -330,10 +330,7 @@ impl From<Item> for Element {
|
|||
Element::builder("item")
|
||||
.ns(ns::MUC_USER)
|
||||
.attr("affiliation", item.affiliation)
|
||||
.attr("jid", match item.jid {
|
||||
Some(jid) => Some(String::from(jid)),
|
||||
None => None,
|
||||
})
|
||||
.attr("jid", item.jid)
|
||||
.attr("nick", item.nick)
|
||||
.attr("role", item.role)
|
||||
.append(item.actor)
|
||||
|
|
|
|||
Loading…
Reference in a new issue