From 92969154b4ab146c171e0e90c09002a723b42a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 30 Apr 2017 17:44:07 +0100 Subject: [PATCH 1/2] Update dep minidom-rs to 0.2.0 --- Cargo.toml | 2 +- src/client.rs | 2 +- src/plugins/messaging.rs | 2 +- src/plugins/presence.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 46c6e72f..ac0a42dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ gitlab = { repository = "lumi/xmpp-rs" } xml-rs = "0.3.6" openssl = "0.9.7" base64 = "0.4.0" -minidom = "0.1.0" +minidom = "0.2.0" jid = "0.1.0" sasl = "0.3.0" diff --git a/src/client.rs b/src/client.rs index 06f4133a..6ac357e8 100644 --- a/src/client.rs +++ b/src/client.rs @@ -242,7 +242,7 @@ impl Client { if let Some(ref resource) = self.jid.resource { let res = Element::builder("resource") .ns(ns::BIND) - .text(resource.to_owned()) + .append(resource.to_owned()) .build(); bind.append_child(res); } diff --git a/src/plugins/messaging.rs b/src/plugins/messaging.rs index 061e186f..af840c8f 100644 --- a/src/plugins/messaging.rs +++ b/src/plugins/messaging.rs @@ -30,7 +30,7 @@ impl MessagingPlugin { .attr("type", "chat") .attr("to", to.to_string()) .build(); - elem.append_child(Element::builder("body").text(body).build()); + elem.append_child(Element::builder("body").append(body).build()); self.proxy.send(elem); Ok(()) } diff --git a/src/plugins/presence.rs b/src/plugins/presence.rs index 82d18ba6..70a67738 100644 --- a/src/plugins/presence.rs +++ b/src/plugins/presence.rs @@ -77,7 +77,7 @@ impl PresencePlugin { if let Some(stat) = status { let elem = Element::builder("status") .ns(ns::CLIENT) - .text(stat) + .append(stat) .build(); stanza.append_child(elem); } From ee2f311447bce8d927a937d6c6d8a919c60ce358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 30 Apr 2017 17:51:44 +0100 Subject: [PATCH 2/2] Update dep jid-rs to 0.2.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ac0a42dd..6f33fd10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ xml-rs = "0.3.6" openssl = "0.9.7" base64 = "0.4.0" minidom = "0.2.0" -jid = "0.1.0" +jid = "0.2.0" sasl = "0.3.0" [features]