diff --git a/xmpp/examples/hello_bot.rs b/xmpp/examples/hello_bot.rs index 877fabd7..716cf404 100644 --- a/xmpp/examples/hello_bot.rs +++ b/xmpp/examples/hello_bot.rs @@ -84,7 +84,7 @@ async fn main() -> Result<(), Option<()>> { }, _ = ctrl_c() => { log::info!("Disconnecting..."); - let _: Result<_, _> = client.disconnect().await; + client.disconnect().await.unwrap(); break; }, }