From 50f511571824f41df920e15e206629c79533fadf Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 12 Aug 2019 14:00:59 +0200 Subject: [PATCH] macro: fix enum verify method Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api_macro/enum_types.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/proxmox-api-macro/src/api_macro/enum_types.rs b/proxmox-api-macro/src/api_macro/enum_types.rs index d808e79b..88c38393 100644 --- a/proxmox-api-macro/src/api_macro/enum_types.rs +++ b/proxmox-api-macro/src/api_macro/enum_types.rs @@ -101,11 +101,10 @@ pub fn handle_enum(mut definition: Object, item: &mut syn::ItemEnum) -> Result - #enum_ident::#field_ty(ref inner) => ::proxmox::api::ApiType::verify(inner), + #enum_ident::#variant_ident(ref inner) => { + ::proxmox::api::ApiType::verify(inner) + } }); } }