Bump xmpp-parsers to 0.13.

Fixes #4.
This commit is contained in:
Emmanuel Gil Peyrot 2019-02-26 21:35:38 +01:00
commit 63afd5d939
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ impl<S: AsyncWrite> ClientBind<S> {
}
Some(_) => {
let resource = stream.jid.resource.clone();
let iq = Iq::from_set(Bind::new(resource)).with_id(BIND_REQ_ID.to_string());
let iq = Iq::from_set(BIND_REQ_ID, Bind::new(resource));
let send = stream.send_stanza(iq);
ClientBind::WaitSend(send)
}
@ -64,7 +64,7 @@ impl<S: AsyncRead + AsyncWrite> Future for ClientBind<S> {
ClientBind::WaitRecv(mut stream) => match stream.poll() {
Ok(Async::Ready(Some(Packet::Stanza(stanza)))) => match Iq::try_from(stanza) {
Ok(iq) => {
if iq.id == Some(BIND_REQ_ID.to_string()) {
if iq.id == BIND_REQ_ID {
match iq.payload {
IqType::Result(payload) => {
payload