xmpp/example: Use unwrap instead of ignoring Result

skip-changelog.

Co-authored-by: Link Mauve <linkmauve@linkmauve.fr>
Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2025-10-29 12:36:12 +00:00
commit d60f718955
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2

View file

@ -84,7 +84,7 @@ async fn main() -> Result<(), Option<()>> {
},
_ = ctrl_c() => {
log::info!("Disconnecting...");
let _: Result<_, _> = client.disconnect().await;
client.disconnect().await.unwrap();
break;
},
}