From c333705a0ec8a46acf75c7fc6ba9004411e989cc Mon Sep 17 00:00:00 2001 From: Razvan Dimescu Date: Sun, 22 Mar 2026 08:29:28 +0200 Subject: [PATCH] fix needless return in trust_ca for Windows clippy On Windows, the not(macos/linux) cfg block is the only path, so clippy flags the return as needless. Use expression form instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/system_dns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system_dns.rs b/src/system_dns.rs index ae8fdf7..9d46ea3 100644 --- a/src/system_dns.rs +++ b/src/system_dns.rs @@ -873,7 +873,7 @@ fn trust_ca() -> Result<(), String> { #[cfg(not(any(target_os = "macos", target_os = "linux")))] { - return Err("CA trust not supported on this OS".into()); + Err("CA trust not supported on this OS".into()) } #[cfg(any(target_os = "macos", target_os = "linux"))]