From e5c9cb6024a16fdd59733b127805b75c3fc28493 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Thu, 25 Jul 2024 21:03:43 +0200 Subject: [PATCH] prefer match --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 826b695..9e38e1d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,10 +18,9 @@ async fn main() { } let exit_listener = ExitListener::new(); - let config = if let Some(aux) = utils::get_config().await { - aux - } else { - return; + let config = match utils::get_config().await { + Some(aux) => aux, + None => return, }; let mut cloudflare =