Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-08-08 13:13:19 +02:00
parent bb3e2859e4
commit cfa6f0f67f
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ impl TryFrom<Expression> 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() =>

View File

@ -1286,7 +1286,6 @@ fn handle_enum(mut definition: Object, item: &mut syn::ItemEnum) -> Result<Token
::serde_plain::derive_deserialize_from_str!(#enum_ident, #expected);
::serde_plain::derive_serialize_from_display!(#enum_ident);
::proxmox::api::derive_parse_cli_from_str!(#enum_ident);
impl ::proxmox::api::ApiType for #enum_ident {