Fix derive(SystemParam) macro (#4400)

Fixes the issue seen in #4398
This commit is contained in:
TheRawMeatball 2022-04-04 19:22:28 +00:00
parent dbd5e7ab6b
commit 032b0f4bac

View file

@ -380,7 +380,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream {
marker: std::marker::PhantomData<fn()->(#punctuated_generic_idents)>
}
unsafe impl<TSystemParamState: #path::system::SystemParamState, #punctuated_generics> #path::system::SystemParamState for #fetch_struct_name<TSystemParamState, #punctuated_generic_idents> {
unsafe impl<TSystemParamState: #path::system::SystemParamState, #punctuated_generics> #path::system::SystemParamState for #fetch_struct_name<TSystemParamState, #punctuated_generic_idents> #where_clause {
fn init(world: &mut #path::world::World, system_meta: &mut #path::system::SystemMeta) -> Self {
Self {
state: TSystemParamState::init(world, system_meta),