stream_start: fix style

This commit is contained in:
Astro 2017-06-13 23:52:41 +02:00
parent 0bae1ce336
commit 1d9790a1d8

View file

@ -75,7 +75,7 @@ impl<S: AsyncRead + AsyncWrite> Future for StreamStart<S> {
Ok(Async::Ready(Some(Packet::Stanza(stanza)))) => Ok(Async::Ready(Some(Packet::Stanza(stanza)))) =>
if stanza.name == "features" if stanza.name == "features"
&& stanza.ns == Some(NS_XMPP_STREAM.to_owned()) { && 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 { } else {
(StreamStartState::RecvFeatures(stream, stream_attrs), Ok(Async::NotReady)) (StreamStartState::RecvFeatures(stream, stream_attrs), Ok(Async::NotReady))
}, },