client: reindent

This commit is contained in:
Astro 2019-01-26 19:39:05 +01:00
parent c75eafa553
commit 3586e5134d

View file

@ -184,16 +184,21 @@ impl Sink for Client {
fn start_send(&mut self, item: Self::SinkItem) -> StartSend<Self::SinkItem, Self::SinkError> { fn start_send(&mut self, item: Self::SinkItem) -> StartSend<Self::SinkItem, Self::SinkError> {
match self.state { match self.state {
ClientState::Connected(ref mut stream) => match stream.start_send(Packet::Stanza(item)) ClientState::Connected(ref mut stream) => {
{ match stream.start_send(Packet::Stanza(item)) {
Ok(AsyncSink::NotReady(Packet::Stanza(stanza))) => Ok(AsyncSink::NotReady(stanza)), Ok(AsyncSink::NotReady(Packet::Stanza(stanza))) =>
Ok(AsyncSink::NotReady(_)) => { Ok(AsyncSink::NotReady(stanza)),
panic!("Client.start_send with stanza but got something else back") Ok(AsyncSink::NotReady(_)) => {
panic!("Client.start_send with stanza but got something else back")
}
Ok(AsyncSink::Ready) =>
Ok(AsyncSink::Ready),
Err(e) =>
Err(e)?,
} }
Ok(AsyncSink::Ready) => Ok(AsyncSink::Ready), }
Err(e) => Err(e)?, _ =>
}, Ok(AsyncSink::NotReady(item)),
_ => Ok(AsyncSink::NotReady(item)),
} }
} }