src: main: Remove redundant closure call

This commit is contained in:
2026-09-14 16:00:52 +00:00
parent 9e4d6f2ed6
commit 57b0760c99
+2 -2
View File
@@ -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<String>)>(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(),