mam: Bump jid to 0.3.1, to serialise it directly to a text node.

Emmanuel Gil Peyrot created

Change summary

Cargo.toml | 2 +-
src/mam.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

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"

src/mam.rs 🔗

@@ -199,7 +199,7 @@ fn serialise_jid_list(name: &str, jids: Vec<Jid>) -> Option<Element> {
                      .append(jids.into_iter()
                                  .map(|jid| Element::builder("jid")
                                                     .ns(ns::MAM)
-                                                    .append(String::from(jid))
+                                                    .append(jid)
                                                     .build())
                                  .collect::<Vec<_>>())
                      .build())