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