From ed0cd0394118b40819c53bb75bd6e36e371e1855 Mon Sep 17 00:00:00 2001 From: Anthony Griffon Date: Wed, 13 Dec 2023 15:38:51 +0100 Subject: [PATCH] misc: fmt Signed-off-by: Anthony Griffon --- cli/src/domain/worker.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cli/src/domain/worker.rs b/cli/src/domain/worker.rs index 6928f04..ceff6b6 100644 --- a/cli/src/domain/worker.rs +++ b/cli/src/domain/worker.rs @@ -115,12 +115,8 @@ pub async fn simple_worker>( match select(interrupt, event_loop_fut).await { // If interrupt is over, it means we closed or reloaded the server so we don't need to // send back the error. - futures::future::Either::Left((_, _)) => { - Ok(()) - } - futures::future::Either::Right((a, _)) => { - a - } + futures::future::Either::Left((_, _)) => Ok(()), + futures::future::Either::Right((a, _)) => a, } }); event_loop_handle.await??;