mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Cargo, echo_bot: fix xmpp-parsers usage
This commit is contained in:
parent
794a994720
commit
35be5a4323
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ tokio-io = "*"
|
|||
bytes = "0.4.4"
|
||||
xml5ever = "*"
|
||||
tendril = "*"
|
||||
minidom = "0.5"
|
||||
minidom = "0.4.3"
|
||||
native-tls = "*"
|
||||
tokio-tls = "*"
|
||||
sasl = "*"
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue