Merge branch 'update_deps' into 'master'

Update dep jid-rs and minidom-rs

See merge request !4
This commit is contained in:
lumi 2017-04-30 18:29:46 +00:00
commit 1d53007a99
4 changed files with 5 additions and 5 deletions

View file

@ -18,8 +18,8 @@ gitlab = { repository = "lumi/xmpp-rs" }
xml-rs = "0.3.6" xml-rs = "0.3.6"
openssl = "0.9.7" openssl = "0.9.7"
base64 = "0.4.0" base64 = "0.4.0"
minidom = "0.1.0" minidom = "0.2.0"
jid = "0.1.0" jid = "0.2.0"
sasl = "0.3.0" sasl = "0.3.0"
[features] [features]

View file

@ -242,7 +242,7 @@ impl Client {
if let Some(ref resource) = self.jid.resource { if let Some(ref resource) = self.jid.resource {
let res = Element::builder("resource") let res = Element::builder("resource")
.ns(ns::BIND) .ns(ns::BIND)
.text(resource.to_owned()) .append(resource.to_owned())
.build(); .build();
bind.append_child(res); bind.append_child(res);
} }

View file

@ -30,7 +30,7 @@ impl MessagingPlugin {
.attr("type", "chat") .attr("type", "chat")
.attr("to", to.to_string()) .attr("to", to.to_string())
.build(); .build();
elem.append_child(Element::builder("body").text(body).build()); elem.append_child(Element::builder("body").append(body).build());
self.proxy.send(elem); self.proxy.send(elem);
Ok(()) Ok(())
} }

View file

@ -77,7 +77,7 @@ impl PresencePlugin {
if let Some(stat) = status { if let Some(stat) = status {
let elem = Element::builder("status") let elem = Element::builder("status")
.ns(ns::CLIENT) .ns(ns::CLIENT)
.text(stat) .append(stat)
.build(); .build();
stanza.append_child(elem); stanza.append_child(elem);
} }