From 3224f42ff5343d24d020de7c997ed684f1ca06c0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 21 Apr 2023 11:10:27 +0200 Subject: [PATCH] tfa: fix warning with types feature w/o api feature Signed-off-by: Wolfgang Bumiller --- proxmox-tfa/src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox-tfa/src/types.rs b/proxmox-tfa/src/types.rs index f87022e8..78deda69 100644 --- a/proxmox-tfa/src/types.rs +++ b/proxmox-tfa/src/types.rs @@ -112,6 +112,7 @@ pub struct TfaUpdateInfo { pub recovery: Vec, } +#[cfg(feature = "api")] impl TfaUpdateInfo { pub(crate) fn with_id(id: String) -> Self { Self {