xmpp/example: explicit types to prevent mishap

Previously there was a forgotten `.await` at this exact place because of
the `let _`, which could have been `let _: type` to prevent this. The
`handle_events` method here returns the unit type so I just removed it.

skip-changelog: already in the changelog and not released yet

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2025-10-29 13:06:47 +01:00
commit 21cb5c1f7f
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2

View file

@ -79,12 +79,12 @@ async fn main() -> Result<(), Option<()>> {
tokio::select! {
events = client.wait_for_events() => {
for event in events {
let _ = handle_events(&mut client, event, &rooms).await;
handle_events(&mut client, event, &rooms).await
}
},
_ = ctrl_c() => {
log::info!("Disconnecting...");
let _ = client.disconnect().await;
let _: Result<_, _> = client.disconnect().await;
break;
},
}