xmpp: update to edition 2024

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2025-11-13 19:58:14 +01:00
commit e503f016a3
19 changed files with 40 additions and 29 deletions

View file

@ -6,11 +6,11 @@
use futures::StreamExt;
use tokio_xmpp::{
parsers::{disco::DiscoInfoQuery, iq::Iq, roster::Roster},
Event as TokioXmppEvent, Stanza,
parsers::{disco::DiscoInfoQuery, iq::Iq, roster::Roster},
};
use crate::{iq, message, presence, Agent, Event};
use crate::{Agent, Event, iq, message, presence};
/// Wait for new events, or Error::Disconnected when stream is closed and will not reconnect.
pub async fn wait_for_events(agent: &mut Agent) -> Vec<Event> {