From cff828d11e6382bb31cb4b51e48fa2cd52c306f1 Mon Sep 17 00:00:00 2001 From: Wouter Buckens Date: Thu, 11 Feb 2021 22:38:36 +0100 Subject: [PATCH] Fix missing paths in ECS SystemParam derive macro --- crates/bevy_ecs/macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/macros/src/lib.rs b/crates/bevy_ecs/macros/src/lib.rs index b6984d2a101ba..cbe6e4a1fd053 100644 --- a/crates/bevy_ecs/macros/src/lib.rs +++ b/crates/bevy_ecs/macros/src/lib.rs @@ -450,7 +450,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream { impl #impl_generics #path::FetchSystemParam<'a> for #fetch_struct_name<#punctuated_generic_idents> { type Item = #struct_name#ty_generics; fn init(system_state: &mut #path::SystemState, world: &#path::World, resources: &mut #path::Resources) { - #(<<#field_types as SystemParam>::Fetch as #path::FetchSystemParam>::init(system_state, world, resources);)* + #(<<#field_types as #path::SystemParam>::Fetch as #path::FetchSystemParam>::init(system_state, world, resources);)* } unsafe fn get_param( @@ -459,7 +459,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream { resources: &'a #path::Resources, ) -> Option { Some(#struct_name { - #(#fields: <<#field_types as SystemParam>::Fetch as #path::FetchSystemParam>::get_param(system_state, world, resources)?,)* + #(#fields: <<#field_types as #path::SystemParam>::Fetch as #path::FetchSystemParam>::get_param(system_state, world, resources)?,)* #(#ignored_fields: <#ignored_field_types>::default(),)* }) }