From fc75d98cb331636b12f9444b8c492ce3c2f323e3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 22 May 2024 15:40:12 +0200 Subject: [PATCH] auth-api: cleanup a warning Signed-off-by: Wolfgang Bumiller --- proxmox-auth-api/src/auth_key.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox-auth-api/src/auth_key.rs b/proxmox-auth-api/src/auth_key.rs index f42ed714..733ffba9 100644 --- a/proxmox-auth-api/src/auth_key.rs +++ b/proxmox-auth-api/src/auth_key.rs @@ -208,6 +208,7 @@ impl HMACKey { // This is needed for legacy CSRF token verifyication. // // TODO: remove once all dependent products had a major version release (PBS) + #[cfg(feature = "api")] pub(crate) fn as_bytes(&self) -> Result, Error> { // workaround to get access to the the bytes behind the key. self.key