]> git.proxmox.com Git - proxmox.git/commitdiff
auth-api: cleanup a warning
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 May 2024 13:40:12 +0000 (15:40 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 May 2024 13:40:12 +0000 (15:40 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-auth-api/src/auth_key.rs

index f42ed714691b75886bafdae998aad41b627a087c..733ffba9cf04f6b4c03f2a24fa3e57a641236a88 100644 (file)
@@ -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<Vec<u8>, Error> {
         // workaround to get access to the the bytes behind the key.
         self.key