make Query::par_iter accept &self (#7912)

This seems to have been a typo/mistake.
This commit is contained in:
Peter Gavin 2023-03-06 00:00:38 +00:00
parent 54d1b03f73
commit 10e6122c64

View File

@ -740,7 +740,7 @@ impl<'w, 's, Q: WorldQuery, F: ReadOnlyWorldQuery> Query<'w, 's, Q, F> {
///
/// [`par_iter_mut`]: Self::par_iter_mut
#[inline]
pub fn par_iter(&mut self) -> QueryParIter<'_, '_, Q::ReadOnly, F::ReadOnly> {
pub fn par_iter(&self) -> QueryParIter<'_, '_, Q::ReadOnly, F::ReadOnly> {
QueryParIter {
world: self.world,
state: self.state.as_readonly(),