diff --git a/proxmox-api-macro/src/api_def.rs b/proxmox-api-macro/src/api_def.rs index 93545e6f..3bcdc313 100644 --- a/proxmox-api-macro/src/api_def.rs +++ b/proxmox-api-macro/src/api_def.rs @@ -42,7 +42,7 @@ impl TryFrom for CliMode { } impl CliMode { - pub fn quote(&self, name: &proc_macro2::Ident) -> TokenStream { + pub fn quote(&self, name: &Ident) -> TokenStream { match self { CliMode::Disabled => quote_spanned! { name.span() => None }, CliMode::ParseCli => quote_spanned! { name.span() => diff --git a/proxmox-api-macro/src/api_macro.rs b/proxmox-api-macro/src/api_macro.rs index e70969c3..4ec3e3cf 100644 --- a/proxmox-api-macro/src/api_macro.rs +++ b/proxmox-api-macro/src/api_macro.rs @@ -1286,7 +1286,6 @@ fn handle_enum(mut definition: Object, item: &mut syn::ItemEnum) -> Result