auth-api: cleanup a warning

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-05-22 15:40:12 +02:00
parent a6dc4d322d
commit fc75d98cb3

View 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