diff options
Diffstat (limited to 'jabber/src/client.rs')
-rw-r--r-- | jabber/src/client.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/jabber/src/client.rs b/jabber/src/client.rs index f741352..1662483 100644 --- a/jabber/src/client.rs +++ b/jabber/src/client.rs @@ -1,29 +1,17 @@ -use std::{ - borrow::Borrow, - future::Future, - pin::pin, - sync::Arc, - task::{ready, Poll}, -}; - -use futures::{FutureExt, Sink, SinkExt, Stream, StreamExt}; -use jid::ParseError; use rsasl::config::SASLConfig; use stanza::{ - client::Stanza, sasl::Mechanisms, stream::{Feature, Features}, }; -use tokio::sync::Mutex; use crate::{ connection::{Tls, Unencrypted}, - jabber_stream::bound_stream::{BoundJabberReader, BoundJabberStream}, + jabber_stream::bound_stream::BoundJabberStream, Connection, Error, JabberStream, Result, JID, }; pub async fn connect_and_login( - mut jid: &mut JID, + jid: &mut JID, password: impl AsRef<str>, server: &mut String, ) -> Result<BoundJabberStream<Tls>> { |