From a08b3338c3e037e0ffa4f8f3741b9a4ae7ce72a1 Mon Sep 17 00:00:00 2001 From: "B. Blechschmidt" Date: Wed, 3 Apr 2024 22:39:05 +0200 Subject: [PATCH] Apply clippy suggestion --- src/bin/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/main.rs b/src/bin/main.rs index 2fdad5e..1723895 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -20,10 +20,8 @@ async fn main() -> Result<(), BoxError> { } #[cfg(not(target_os = "linux"))] log::error!("Your platform doesn't support unprivileged namespaces"); - } else { - if let Err(err) = tun2proxy::desktop_run_async(args, shutdown_token).await { - log::error!("main loop error: {}", err); - } + } else if let Err(err) = tun2proxy::desktop_run_async(args, shutdown_token).await { + log::error!("main loop error: {}", err); } } });