Skip to content

Commit b39df9a

Browse files
authored
Fix missing paths in ECS SystemParam derive macro (#1434)
1 parent 3a32a21 commit b39df9a

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_ecs/macros/src

1 file changed

+2
-2
lines changed

crates/bevy_ecs/macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream {
450450
impl #impl_generics #path::FetchSystemParam<'a> for #fetch_struct_name<#punctuated_generic_idents> {
451451
type Item = #struct_name#ty_generics;
452452
fn init(system_state: &mut #path::SystemState, world: &#path::World, resources: &mut #path::Resources) {
453-
#(<<#field_types as SystemParam>::Fetch as #path::FetchSystemParam>::init(system_state, world, resources);)*
453+
#(<<#field_types as #path::SystemParam>::Fetch as #path::FetchSystemParam>::init(system_state, world, resources);)*
454454
}
455455

456456
unsafe fn get_param(
@@ -459,7 +459,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream {
459459
resources: &'a #path::Resources,
460460
) -> Option<Self::Item> {
461461
Some(#struct_name {
462-
#(#fields: <<#field_types as SystemParam>::Fetch as #path::FetchSystemParam>::get_param(system_state, world, resources)?,)*
462+
#(#fields: <<#field_types as #path::SystemParam>::Fetch as #path::FetchSystemParam>::get_param(system_state, world, resources)?,)*
463463
#(#ignored_fields: <#ignored_field_types>::default(),)*
464464
})
465465
}

0 commit comments

Comments
 (0)