tokio-xmpp: remove redundant pin from examples

This commit is contained in:
famfo 2026-02-03 01:47:46 +01:00 committed by pep
commit 366f2c8349

View file

@ -31,13 +31,12 @@ async fn main() {
// Client instance // Client instance
let mut client = Client::new(jid, password); let mut client = Client::new(jid, password);
let token = client let mut token = client
.send_iq( .send_iq(
Some(target), Some(target),
IqRequest::Get(DiscoInfoQuery { node: None }.into()), IqRequest::Get(DiscoInfoQuery { node: None }.into()),
) )
.await; .await;
tokio::pin!(token);
// Main loop, processes events // Main loop, processes events
loop { loop {