tokio-xmpp: Import Jid, BareJid and Element properly

xmpp-parsers has stopped reexporting them, instead it reexports only the
crates themselves.
This commit is contained in:
Emmanuel Gil Peyrot 2024-07-24 20:39:27 +02:00 committed by Jonas Schäfer
commit e9b226e1ae
21 changed files with 34 additions and 22 deletions

View file

@ -1,4 +1,4 @@
use xmpp_parsers::{ns, Jid};
use xmpp_parsers::{jid::Jid, ns};
use crate::connect::ServerConnector;
use crate::{xmpp_stream::XMPPStream, Error};

View file

@ -2,10 +2,11 @@
//! XMPP server under a JID consisting of just a domain name. They are
//! allowed to use any user and resource identifiers in their stanzas.
use futures::{sink::SinkExt, task::Poll, Sink, Stream};
use minidom::Element;
use std::pin::Pin;
use std::str::FromStr;
use std::task::Context;
use xmpp_parsers::{ns, Element, Jid};
use xmpp_parsers::{jid::Jid, ns};
use self::connect::component_login;