xmpp: fixup disco mod

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2024-06-18 19:57:12 +02:00
parent 7e9eb5e1d3
commit 37e94767e0

View file

@ -6,17 +6,13 @@
use crate::jid::Jid; use crate::jid::Jid;
use crate::Agent; use crate::Agent;
use tokio_xmpp::{ use tokio_xmpp::parsers::{
minidom::Element,
parsers::{
bookmarks, bookmarks,
disco::DiscoInfoResult, disco::DiscoInfoResult,
iq::Iq, iq::Iq,
ns, ns,
private::Query as PrivateXMLQuery, private::Query as PrivateXMLQuery,
pubsub::pubsub::{Items, PubSub}, pubsub::pubsub::{Items, PubSub},
Error as ParsersError,
},
}; };
pub async fn handle_disco_info_result(agent: &mut Agent, disco: DiscoInfoResult, from: Jid) { pub async fn handle_disco_info_result(agent: &mut Agent, disco: DiscoInfoResult, from: Jid) {