From ae00389cb74919a93de9d67c996bebed4f241cbb Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 12 Jul 2023 12:41:36 +0100 Subject: move Element to stanza and make write() a method --- src/client/encrypted.rs | 2 +- src/client/unencrypted.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/encrypted.rs b/src/client/encrypted.rs index 76f600c..898dc23 100644 --- a/src/client/encrypted.rs +++ b/src/client/encrypted.rs @@ -6,8 +6,8 @@ use tokio::io::{BufReader, ReadHalf, WriteHalf}; use tokio::net::TcpStream; use tokio_native_tls::TlsStream; -use crate::element::Element; use crate::stanza::stream::{Stream, StreamFeature}; +use crate::stanza::Element; use crate::Jabber; use crate::Result; diff --git a/src/client/unencrypted.rs b/src/client/unencrypted.rs index ce534c7..3f3a133 100644 --- a/src/client/unencrypted.rs +++ b/src/client/unencrypted.rs @@ -1,5 +1,3 @@ -use std::str; - use quick_xml::{ events::{BytesDecl, BytesStart, Event}, name::QName, @@ -9,8 +7,8 @@ use tokio::io::{BufReader, ReadHalf, WriteHalf}; use tokio::net::TcpStream; use tokio_native_tls::native_tls::TlsConnector; -use crate::element::Element; use crate::stanza::stream::StreamFeature; +use crate::stanza::Element; use crate::Jabber; use crate::Result; use crate::{error::JabberError, stanza::stream::Stream}; -- cgit