Only expose one error type in crate root

This commit is contained in:
xmppftw xmppftw 2024-08-04 17:32:12 +02:00 committed by Link Mauve
commit 34796c90d4
8 changed files with 14 additions and 9 deletions

View file

@ -3,9 +3,9 @@ use tokio::io::{AsyncRead, AsyncWrite};
use tokio_util::codec::Framed;
use xmpp_parsers::{jid::Jid, ns, stream_features::StreamFeatures};
use crate::error::{Error, ProtocolError};
use crate::xmpp_codec::{Packet, XmppCodec};
use crate::xmpp_stream::XMPPStream;
use crate::{Error, ProtocolError};
/// Sends a `<stream:stream>`, then wait for one from the server, and
/// construct an XMPPStream.