From cd7bb95c0a31d187bfe25bad15043f0b33b111cf Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 2 Aug 2023 00:56:38 +0100 Subject: implement resource binding --- src/lib.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index d27f0ba..95a228b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![allow(unused_must_use)] +#![feature(let_chains)] // TODO: logging (dropped errors) pub mod client; @@ -44,10 +45,13 @@ mod tests { #[tokio::test] async fn login() { - Jabber::new(JID::from_str("test@blos.sm").unwrap(), "slayed".to_owned()) - .unwrap() - .login() - .await - .unwrap(); + Jabber::new( + JID::from_str("test@blos.sm/clown").unwrap(), + "slayed".to_owned(), + ) + .unwrap() + .login() + .await + .unwrap(); } } -- cgit