forked from Proxmox/proxmox
macro: fixup previous commit: remove hardcoded error
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
0046e5e33a
commit
37cf2e6208
@ -59,10 +59,6 @@ pub fn handle_enum(mut definition: Object, item: &mut syn::ItemEnum) -> Result<T
|
||||
let mut verify_entries = TokenStream::new();
|
||||
|
||||
for variant in item.variants.iter_mut() {
|
||||
if variant.fields != syn::Fields::Unit {
|
||||
c_bail!(variant.span(), "#[api] enums cannot have fields");
|
||||
}
|
||||
|
||||
let variant_ident = &variant.ident;
|
||||
let span = variant_ident.span();
|
||||
let underscore_name = util::to_underscore_case(&variant_ident.to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user