src: main: Remove redundant closure call
This commit is contained in:
+2
-2
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user