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:
parent
21cb5c1f7f
commit
d60f718955
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ async fn main() -> Result<(), Option<()>> {
|
|||
},
|
||||
_ = ctrl_c() => {
|
||||
log::info!("Disconnecting...");
|
||||
let _: Result<_, _> = client.disconnect().await;
|
||||
client.disconnect().await.unwrap();
|
||||
break;
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue