From c94d9530ed5f95ec7b757d5eb44e1f912b33ffc1 Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Sat, 18 Jan 2025 00:35:14 +0530 Subject: [PATCH] fix: wrongly gated parser --- src/option.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/option.rs b/src/option.rs index e6c2d9200..37b1a37e3 100644 --- a/src/option.rs +++ b/src/option.rs @@ -199,10 +199,7 @@ pub mod validation { use human_size::{multiples, SpecificSize}; - #[cfg(any( - all(target_os = "linux", target_arch = "x86_64"), - all(target_os = "macos", target_arch = "aarch64") - ))] + #[cfg(unix)] use crate::kafka::SslProtocol; use super::{Compression, Mode}; @@ -249,10 +246,7 @@ pub mod validation { url::Url::parse(s).map_err(|_| "Invalid URL provided".to_string()) } - #[cfg(any( - all(target_os = "linux", target_arch = "x86_64"), - all(target_os = "macos", target_arch = "aarch64") - ))] + #[cfg(unix)] pub fn kafka_security_protocol(s: &str) -> Result { match s { "plaintext" => Ok(SslProtocol::Plaintext),