From b859cd7f78495da90b947febabefdff82c02deb9 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 25 Feb 2025 19:50:15 +0000 Subject: cleanup jabber crate --- jabber/src/client.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'jabber/src/client.rs') 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, server: &mut String, ) -> Result> { -- cgit