From cfa6f0f67fbe37cc70c5ad4aa01a386aa2fed952 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 8 Aug 2019 13:13:19 +0200 Subject: [PATCH] cleanup Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api_def.rs | 2 +- proxmox-api-macro/src/api_macro.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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