From 5988a1adf1720248562202bb1f83e9c8e19cae9b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 12 Oct 2021 14:49:10 +0200 Subject: [PATCH] drop automatically_derived attribute for now new rustc seems to *sometimes* complain about it Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/enums.rs | 1 - proxmox-api-macro/src/api/structs.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/proxmox-api-macro/src/api/enums.rs b/proxmox-api-macro/src/api/enums.rs index 2797a641..595760ea 100644 --- a/proxmox-api-macro/src/api/enums.rs +++ b/proxmox-api-macro/src/api/enums.rs @@ -77,7 +77,6 @@ pub fn handle_enum( Ok(quote_spanned! { name.span() => #enum_ty - #[automatically_derived] impl ::proxmox_schema::ApiType for #name { const API_SCHEMA: ::proxmox_schema::Schema = #schema diff --git a/proxmox-api-macro/src/api/structs.rs b/proxmox-api-macro/src/api/structs.rs index 49ebf3ad..136e4109 100644 --- a/proxmox-api-macro/src/api/structs.rs +++ b/proxmox-api-macro/src/api/structs.rs @@ -84,7 +84,6 @@ fn finish_schema( Ok(quote_spanned! { name.span() => #stru - #[automatically_derived] impl ::proxmox_schema::ApiType for #name { const API_SCHEMA: ::proxmox_schema::Schema = #schema; } @@ -353,7 +352,6 @@ fn finish_all_of_struct( #inner_schema } - #[automatically_derived] impl ::proxmox_schema::ApiType for #name { const API_SCHEMA: ::proxmox_schema::Schema = ::proxmox_schema::AllOfSchema::new( @@ -443,7 +441,6 @@ fn derive_updater( if !is_empty_impl.is_empty() { output.extend(quote::quote!( - #[automatically_derived] impl ::proxmox_schema::Updater for #updater_name { fn is_empty(&self) -> bool { #is_empty_impl