Cargo, echo_bot: fix xmpp-parsers usage

This commit is contained in:
Astro 2017-07-19 01:00:17 +02:00
parent 794a994720
commit 35be5a4323
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ tokio-io = "*"
bytes = "0.4.4"
xml5ever = "*"
tendril = "*"
minidom = "0.5"
minidom = "0.4.3"
native-tls = "*"
tokio-tls = "*"
sasl = "*"

View file

@ -86,7 +86,7 @@ fn make_presence() -> Element {
let mut presence = Presence::new(PresenceType::None);
presence.show = PresenceShow::Chat;
presence.statuses.insert(String::from("en"), String::from("Echoing messages."));
Element::from(presence)
presence.into()
}
// Construct a chat <message/>
@ -94,5 +94,5 @@ fn make_reply(to: &str, body: String) -> Element {
let jid = to.parse().unwrap();
let mut message = Message::new(Some(jid));
message.bodies.insert(String::new(), body);
Element::from(message)
message.into()
}