diff --git a/crates/bevy_ecs/macros/src/fetch.rs b/crates/bevy_ecs/macros/src/fetch.rs index 8e4e1cfe79..4d04d1812b 100644 --- a/crates/bevy_ecs/macros/src/fetch.rs +++ b/crates/bevy_ecs/macros/src/fetch.rs @@ -282,7 +282,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream { #[inline(always)] unsafe fn fetch<'__w>( _fetch: &mut ::Fetch<'__w>, - _entity: Entity, + _entity: #path::entity::Entity, _table_row: usize ) -> ::Item<'__w> { Self::Item { @@ -295,7 +295,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream { #[inline(always)] unsafe fn filter_fetch<'__w>( _fetch: &mut ::Fetch<'__w>, - _entity: Entity, + _entity: #path::entity::Entity, _table_row: usize ) -> bool { true #(&& <#field_types>::filter_fetch(&mut _fetch.#field_idents, _entity, _table_row))*