Skip to content

Commit

Permalink
Don't use Resource trait bound for Local
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-blackbird committed Oct 21, 2022
1 parent db9e405 commit 497db12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/system/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ impl<'a, T: FromWorld + Send + Sync + 'static> DerefMut for Local<'a, T> {
}
}

impl<'w, 'a, T: Resource> IntoIterator for &'a Local<'w, T>
impl<'w, 'a, T: FromWorld + Send + 'static> IntoIterator for &'a Local<'w, T>
where
&'a T: IntoIterator,
{
Expand All @@ -747,7 +747,7 @@ where
}
}

impl<'w, 'a, T: Resource> IntoIterator for &'a mut Local<'w, T>
impl<'w, 'a, T: FromWorld + Send + 'static> IntoIterator for &'a mut Local<'w, T>
where
&'a mut T: IntoIterator,
{
Expand Down

0 comments on commit 497db12

Please sign in to comment.