Skip to content

Commit 1967c3d

Browse files
committed
Fix Entity hygiene in WorldQuery (#6614)
# Objective Fix #6593 ## Solution Fully qualify `Entity` in the `WorldQuery` macro
1 parent 7231e00 commit 1967c3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/macros/src/fetch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream {
282282
#[inline(always)]
283283
unsafe fn fetch<'__w>(
284284
_fetch: &mut <Self as #path::query::WorldQuery>::Fetch<'__w>,
285-
_entity: Entity,
285+
_entity: #path::entity::Entity,
286286
_table_row: usize
287287
) -> <Self as #path::query::WorldQuery>::Item<'__w> {
288288
Self::Item {
@@ -295,7 +295,7 @@ pub fn derive_world_query_impl(ast: DeriveInput) -> TokenStream {
295295
#[inline(always)]
296296
unsafe fn filter_fetch<'__w>(
297297
_fetch: &mut <Self as #path::query::WorldQuery>::Fetch<'__w>,
298-
_entity: Entity,
298+
_entity: #path::entity::Entity,
299299
_table_row: usize
300300
) -> bool {
301301
true #(&& <#field_types>::filter_fetch(&mut _fetch.#field_idents, _entity, _table_row))*

0 commit comments

Comments
 (0)