Skip to content

Commit e72551a

Browse files
committed
cargo fmt
1 parent 2001472 commit e72551a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

crates/bevy_ecs/src/query/state.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ impl<D: QueryData, F: QueryFilter> QueryState<D, F> {
430430
let mut new_filter_component_access = FilteredAccess::default();
431431
NewF::update_component_access(&new_filter_state, &mut new_filter_component_access);
432432

433-
component_access.extend(&new_filter_component_access);
433+
component_access.extend(&new_filter_component_access);
434434

435435
let mut joined_component_access = self.component_access.clone();
436436
joined_component_access.extend(&other.component_access);
@@ -1827,7 +1827,6 @@ mod tests {
18271827
world.init_component::<B>();
18281828
let query = QueryState::<&A>::new(&mut world);
18291829
let _new_query = query.transmute_filtered::<Entity, Changed<B>>(&world);
1830-
18311830
}
18321831

18331832
#[test]
@@ -1866,6 +1865,5 @@ mod tests {
18661865
let query_1 = QueryState::<&A, Without<C>>::new(&mut world);
18671866
let query_2 = QueryState::<&B, Without<C>>::new(&mut world);
18681867
let _: QueryState<Entity, Changed<C>> = query_1.join_filtered(&world, &query_2);
1869-
18701868
}
18711869
}

crates/bevy_ecs/src/system/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> Query<'w, 's, D, F> {
15631563
&mut self,
15641564
other: &mut Query<OtherD, OtherF>,
15651565
) -> QueryLens<'_, NewD, NewF> {
1566-
// SAFETY:
1566+
// SAFETY:
15671567
// - The queries have correctly captured their access.
15681568
// - We have exclusive access to both queries.
15691569
// - Access for QueryLens is checked when state is created.

0 commit comments

Comments
 (0)