From 86eb65b8291a31877379a8dfc480885e20dbe2aa Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 31 Oct 2017 22:21:27 +0000 Subject: [PATCH] mam: Bump jid to 0.3.1, to serialise it directly to a text node. --- Cargo.toml | 2 +- src/mam.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3a447e9..cd55dfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ license = "MPL-2.0" [dependencies] minidom = "0.6.2" -jid = { version = "0.3.0", features = ["minidom"] } +jid = { version = "0.3.1", features = ["minidom"] } base64 = "0.7.0" digest = "0.6.0" sha-1 = "0.4.0" diff --git a/src/mam.rs b/src/mam.rs index 4a2872b..82158a4 100644 --- a/src/mam.rs +++ b/src/mam.rs @@ -199,7 +199,7 @@ fn serialise_jid_list(name: &str, jids: Vec) -> Option { .append(jids.into_iter() .map(|jid| Element::builder("jid") .ns(ns::MAM) - .append(String::from(jid)) + .append(jid) .build()) .collect::>()) .build())