Skip to content

Commit 3bc9432

Browse files
Fix lifetimes on self
Co-authored-by: Boxy <[email protected]>
1 parent f04c390 commit 3bc9432

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/bevy_ecs/src/system/query.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ where
628628
/// See [`Query::multiple`] for the infallible equivalent.
629629
#[inline]
630630
pub fn get_multiple<const N: usize>(
631-
&'s self,
631+
&self,
632632
entities: [Entity; N],
633633
) -> Result<[<Q::ReadOnlyFetch as Fetch<'_, 's>>::Item; N], QueryEntityError> {
634634
let array_of_results = entities.map(|entity| {
@@ -691,7 +691,7 @@ where
691691
/// ```
692692
#[inline]
693693
pub fn multiple<const N: usize>(
694-
&'s self,
694+
&self,
695695
entities: [Entity; N],
696696
) -> [<Q::ReadOnlyFetch as Fetch<'_, 's>>::Item; N] {
697697
self.get_multiple(entities).unwrap()
@@ -746,9 +746,9 @@ where
746746
/// See [`Query::multiple_mut`] for the infallible equivalent.
747747
#[inline]
748748
pub fn get_multiple_mut<const N: usize>(
749-
&'s mut self,
749+
&mut self,
750750
entities: [Entity; N],
751-
) -> Result<[<Q::Fetch as Fetch>::Item; N], QueryEntityError> {
751+
) -> Result<[<Q::Fetch as Fetch<'_, 's>>::Item; N], QueryEntityError> {
752752
for i in 0..N {
753753
for j in 0..i {
754754
if entities[i] == entities[j] {
@@ -825,7 +825,7 @@ where
825825
/// ```
826826
#[inline]
827827
pub fn multiple_mut<const N: usize>(
828-
&'s mut self,
828+
&mut self,
829829
entities: [Entity; N],
830830
) -> [<Q::Fetch as Fetch<'_, 's>>::Item; N] {
831831
self.get_multiple_mut(entities).unwrap()

0 commit comments

Comments
 (0)