diff --git a/src/main.rs b/src/main.rs index 034d9e7..906217b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,7 @@ async fn main() -> anyhow::Result<()> { // it holds a tuple with an HTML message and a list of rooms to post to let (bcast_tx, bcast_rx) = broadcast::channel::<(String, Vec)>(1024); - let handle: JoinHandle<_> = (|| { + let handle: JoinHandle<_> = { let matrix_ready = Arc::clone(&matrix_ready); let config = Arc::clone(&config); @@ -72,7 +72,7 @@ async fn main() -> anyhow::Result<()> { () }).await.unwrap(); //XXX: Panic if the mqtt broker fails }) - })(); + }; login_and_sync( config.homeserver_uri.clone().into(),