From 57b0760c99b3073dd262a80691aa7738f9455286 Mon Sep 17 00:00:00 2001 From: mirsal Date: Mon, 14 Sep 2026 16:00:52 +0000 Subject: [PATCH] src: main: Remove redundant closure call --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(),