Skip to content

Commit 8b448cb

Browse files
Fix inappropriate lifetime constraint on get_unchecked
1 parent f7e60ca commit 8b448cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/system/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ where
895895
/// this call does not result in multiple mutable references to the same component
896896
#[inline]
897897
pub unsafe fn get_unchecked(
898-
&'s self,
898+
&self,
899899
entity: Entity,
900900
) -> Result<<Q::Fetch as Fetch<'w, 's>>::Item, QueryEntityError> {
901901
// SEMI-SAFE: system runs without conflicts with other systems.
@@ -1218,7 +1218,7 @@ where
12181218
iter: I,
12191219
}
12201220

1221-
impl<'w, 's, 'q: 's, Q: WorldQuery, F: WorldQuery, I: Iterator<Item = Entity>> Iterator
1221+
impl<'w, 's, 'q, Q: WorldQuery, F: WorldQuery, I: Iterator<Item = Entity>> Iterator
12221222
for GetMultipleMut<'w, 's, 'q, Q, F, I>
12231223
where
12241224
F::Fetch: FilterFetch,

0 commit comments

Comments
 (0)