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
|
|
@ -211,8 +211,8 @@ impl From<Message> for Element {
|
|||
fn from(message: Message) -> Element {
|
||||
Element::builder("message")
|
||||
.ns(ns::JABBER_CLIENT)
|
||||
.attr("from", message.from.map(String::from))
|
||||
.attr("to", message.to.map(String::from))
|
||||
.attr("from", message.from)
|
||||
.attr("to", message.to)
|
||||
.attr("id", message.id)
|
||||
.attr("type", message.type_)
|
||||
.append(message.subjects.into_iter()
|
||||
|
|
|
|||
Loading…
Reference in a new issue