Skip to content

Commit

Permalink
Fix derive(SystemParam) macro (bevyengine#4400)
Browse files Browse the repository at this point in the history
Fixes the issue seen in bevyengine#4398
  • Loading branch information
TheRawMeatball authored and ItsDoot committed Feb 1, 2023
1 parent 52e8d20 commit 3dc8894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3dc8894

Please sign in to comment.