diff --git a/xmpp/examples/hello_bot.rs b/xmpp/examples/hello_bot.rs index eaaf16e9a429bf3154c9ea287bd0cdf38af4cfab..877fabd70c3336268f36ae663652fe980668078c 100644 --- a/xmpp/examples/hello_bot.rs +++ b/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; }, }