From 1d9790a1d8a761f2305f49783ebe9e364bb3c32e Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 13 Jun 2017 23:52:41 +0200 Subject: [PATCH] stream_start: fix style --- src/stream_start.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_start.rs b/src/stream_start.rs index 480178eb..3e5bc8b2 100644 --- a/src/stream_start.rs +++ b/src/stream_start.rs @@ -75,7 +75,7 @@ impl Future for StreamStart { Ok(Async::Ready(Some(Packet::Stanza(stanza)))) => if stanza.name == "features" && stanza.ns == Some(NS_XMPP_STREAM.to_owned()) { - (StreamStartState::Invalid, Ok(Async::Ready(XMPPStream { stream, stream_attrs, stream_features: stanza }))) + (StreamStartState::Invalid, Ok(Async::Ready(XMPPStream::new(stream, stream_attrs, stanza)))) } else { (StreamStartState::RecvFeatures(stream, stream_attrs), Ok(Async::NotReady)) },