forked from Proxmox/proxmox
cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
bb3e2859e4
commit
cfa6f0f67f
@ -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() =>
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user