From e72551a55cd504f73edc2c4f53b92199b62e7a19 Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Sun, 28 Jan 2024 21:40:53 -0800 Subject: [PATCH] cargo fmt --- crates/bevy_ecs/src/query/state.rs | 4 +--- crates/bevy_ecs/src/system/query.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/bevy_ecs/src/query/state.rs b/crates/bevy_ecs/src/query/state.rs index afefb5ace1417a..288b491e073b6c 100644 --- a/crates/bevy_ecs/src/query/state.rs +++ b/crates/bevy_ecs/src/query/state.rs @@ -430,7 +430,7 @@ impl QueryState { let mut new_filter_component_access = FilteredAccess::default(); NewF::update_component_access(&new_filter_state, &mut new_filter_component_access); - component_access.extend(&new_filter_component_access); + component_access.extend(&new_filter_component_access); let mut joined_component_access = self.component_access.clone(); joined_component_access.extend(&other.component_access); @@ -1827,7 +1827,6 @@ mod tests { world.init_component::(); let query = QueryState::<&A>::new(&mut world); let _new_query = query.transmute_filtered::>(&world); - } #[test] @@ -1866,6 +1865,5 @@ mod tests { let query_1 = QueryState::<&A, Without>::new(&mut world); let query_2 = QueryState::<&B, Without>::new(&mut world); let _: QueryState> = query_1.join_filtered(&world, &query_2); - } } diff --git a/crates/bevy_ecs/src/system/query.rs b/crates/bevy_ecs/src/system/query.rs index 8854bc8762b417..5340bcbfa8cc5f 100644 --- a/crates/bevy_ecs/src/system/query.rs +++ b/crates/bevy_ecs/src/system/query.rs @@ -1563,7 +1563,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> Query<'w, 's, D, F> { &mut self, other: &mut Query, ) -> QueryLens<'_, NewD, NewF> { - // SAFETY: + // SAFETY: // - The queries have correctly captured their access. // - We have exclusive access to both queries. // - Access for QueryLens is checked when state is created.