xmpp/example: explicit types to prevent mishap

pep created

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>

Change summary

xmpp/examples/hello_bot.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

xmpp/examples/hello_bot.rs 🔗

@@ -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;
             },
         }