From ae247312f777b7558c8b16a79e207efd53fd5b86 Mon Sep 17 00:00:00 2001 From: Emi Tatsuo Date: Sat, 5 Dec 2020 09:54:05 -0500 Subject: [PATCH] Fix `gemini_srv` with more conditional comp --- src/types/request.rs | 2 ++ 1 file changed, 2 insertions(+) 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