diff --git a/src/types/request.rs b/src/types/request.rs index d14d052..2a98553 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -245,6 +245,7 @@ impl Request { } #[allow(clippy::ptr_arg)] // This is a single use function that expects a &String +#[cfg(feature = "scgi_srv")] /// Attempt to decode a 256 bit hash /// /// Will attempt to decode first as hexadecimal, and then as base64. If both fail, return @@ -267,6 +268,7 @@ fn hash_decode(hash: &String) -> Option<[u8; 32]> { } } +#[cfg(feature = "scgi_srv")] /// Attempt to decode a hex encoded nibble to u8 /// /// Returns [`None`] if not a valid hex character