Skip to content

Commit

Permalink
fix: wrongly gated parser
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Jan 17, 2025
1 parent c3564d4 commit c94d953
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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<SslProtocol, String> {
match s {
"plaintext" => Ok(SslProtocol::Plaintext),
Expand Down

0 comments on commit c94d953

Please sign in to comment.