aboutsummaryrefslogtreecommitdiffstats
path: root/jabber/src/client.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-02-25 19:50:15 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2025-02-25 19:50:46 +0000
commitb859cd7f78495da90b947febabefdff82c02deb9 (patch)
tree2055141ae331000e34788cdcb1bd28406dc4213a /jabber/src/client.rs
parentea87cc407c40e8ef5162a3a4457ed0b1bfcf4a55 (diff)
downloadluz-b859cd7f78495da90b947febabefdff82c02deb9.tar.gz
luz-b859cd7f78495da90b947febabefdff82c02deb9.tar.bz2
luz-b859cd7f78495da90b947febabefdff82c02deb9.zip
cleanup jabber crate
Diffstat (limited to 'jabber/src/client.rs')
-rw-r--r--jabber/src/client.rs16
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>> {