From 6db28b1b6deeb3534bd8bf9ce55467e6ac73ad74 Mon Sep 17 00:00:00 2001 From: Vladimir Pankratov Date: Sat, 3 Oct 2026 23:14:32 +0200 Subject: [PATCH] Drop the redundant else after the accept loop Rust 1.99 clippy (pedantic redundant_else) rejects the else branch because the accept loop never returns. Print the bind failure after the if instead; behaviour is unchanged. --- src/server.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index 8f32a76..bbdad91 100644 --- a/src/server.rs +++ b/src/server.rs @@ -325,9 +325,8 @@ pub async fn run_plugin_mode(args: Args) -> Result<(), Error> { println!("accept new stream fail, ignore here"); } } - } else { - println!("can not listen to address: {address:?}"); } + println!("can not listen to address: {address:?}"); }; srv.await;