xmpp/example: Use unwrap instead of ignoring Result

pep and Link Mauve created

skip-changelog.

Co-authored-by: Link Mauve <linkmauve@linkmauve.fr>
Signed-off-by: pep <pep@bouah.net>

Change summary

xmpp/examples/hello_bot.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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