mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-10-23 12:49:57 +00:00
no need to generate a config struct and corresponding impls for each field of salsa::input
This commit is contained in:
parent
79ca8e8ca7
commit
b55caff4ec
1 changed files with 0 additions and 4 deletions
|
@ -51,8 +51,6 @@ impl InputStruct {
|
|||
fn generate_input(&self) -> syn::Result<TokenStream> {
|
||||
self.validate_input()?;
|
||||
|
||||
let (config_structs, config_impls) = self.field_config_structs_and_impls(self.all_fields());
|
||||
|
||||
let id_struct = self.id_struct();
|
||||
let inherent_impl = self.input_inherent_impl();
|
||||
let ingredients_for_impl = self.input_ingredients();
|
||||
|
@ -61,13 +59,11 @@ impl InputStruct {
|
|||
let as_debug_with_db_impl = self.as_debug_with_db_impl();
|
||||
|
||||
Ok(quote! {
|
||||
#(#config_structs)*
|
||||
#id_struct
|
||||
#inherent_impl
|
||||
#ingredients_for_impl
|
||||
#as_id_impl
|
||||
#as_debug_with_db_impl
|
||||
#(#config_impls)*
|
||||
#salsa_struct_in_db_impl
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue