Skip to content

Commit a7c47be

Browse files
committed
cargo fmt
1 parent d29316b commit a7c47be

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);
@@ -1886,7 +1886,6 @@ mod tests {
18861886
world.init_component::<B>();
18871887
let query = QueryState::<&A>::new(&mut world);
18881888
let _new_query = query.transmute_filtered::<Entity, Changed<B>>(&world);
1889-
18901889
}
18911890

18921891
#[test]
@@ -1925,6 +1924,5 @@ mod tests {
19251924
let query_1 = QueryState::<&A, Without<C>>::new(&mut world);
19261925
let query_2 = QueryState::<&B, Without<C>>::new(&mut world);
19271926
let _: QueryState<Entity, Changed<C>> = query_1.join_filtered(&world, &query_2);
1928-
19291927
}
19301928
}

crates/bevy_ecs/src/system/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ impl<'w, 's, D: QueryData, F: QueryFilter> Query<'w, 's, D, F> {
16161616
&mut self,
16171617
other: &mut Query<OtherD, OtherF>,
16181618
) -> QueryLens<'_, NewD, NewF> {
1619-
// SAFETY:
1619+
// SAFETY:
16201620
// - The queries have correctly captured their access.
16211621
// - We have exclusive access to both queries.
16221622
// - Access for QueryLens is checked when state is created.

0 commit comments

Comments
 (0)