Skip to content

Commit

Permalink
Fix lifetimes on self
Browse files Browse the repository at this point in the history
Co-authored-by: Boxy <supbscripter@gmail.com>
  • Loading branch information
alice-i-cecile and BoxyUwU committed Mar 22, 2022
1 parent f04c390 commit 0d3b765
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_ecs/src/system/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ where
/// ```
#[inline]
pub fn multiple<const N: usize>(
&'s self,
&self,
entities: [Entity; N],
) -> [<Q::ReadOnlyFetch as Fetch<'_, 's>>::Item; N] {
self.get_multiple(entities).unwrap()
Expand Down Expand Up @@ -746,9 +746,9 @@ where
/// See [`Query::multiple_mut`] for the infallible equivalent.
#[inline]
pub fn get_multiple_mut<const N: usize>(
&'s mut self,
&mut self,
entities: [Entity; N],
) -> Result<[<Q::Fetch as Fetch>::Item; N], QueryEntityError> {
) -> Result<[<Q::Fetch as Fetch<'_, 's>>::Item; N], QueryEntityError> {
for i in 0..N {
for j in 0..i {
if entities[i] == entities[j] {
Expand Down Expand Up @@ -825,7 +825,7 @@ where
/// ```
#[inline]
pub fn multiple_mut<const N: usize>(
&'s mut self,
&mut self,
entities: [Entity; N],
) -> [<Q::Fetch as Fetch<'_, 's>>::Item; N] {
self.get_multiple_mut(entities).unwrap()
Expand Down

0 comments on commit 0d3b765

Please sign in to comment.