restructure auth code

This commit is contained in:
Astro 2018-12-20 20:39:01 +01:00
commit ce039d767e
4 changed files with 70 additions and 90 deletions

View file

@ -104,7 +104,7 @@ impl Client {
StartTlsClient::from_stream(stream)
}
fn auth<S: AsyncRead + AsyncWrite>(
fn auth<S: AsyncRead + AsyncWrite + 'static>(
stream: xmpp_stream::XMPPStream<S>,
username: String,
password: String,