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) <noreply@anthropic.com>
This commit is contained in:
@@ -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"))]
|
||||
|
||||
Reference in New Issue
Block a user