File tree 1 file changed +4
-4
lines changed
crates/bevy_ecs/src/system
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ where
285
285
/// Runs `f` on each query result. This is faster than the equivalent iter() method, but cannot
286
286
/// be chained like a normal [`Iterator`].
287
287
#[ inline]
288
- pub fn for_each_mut ( & mut self , f : impl FnMut ( <Q :: Fetch as Fetch < ' _ , ' _ > >:: Item ) ) {
288
+ pub fn for_each_mut < ' a > ( & ' a mut self , f : impl FnMut ( <Q :: Fetch as Fetch < ' a , ' a > >:: Item ) ) {
289
289
// SAFE: system runs without conflicts with other systems. same-system queries have runtime
290
290
// borrow checks when they conflict
291
291
unsafe {
@@ -327,11 +327,11 @@ where
327
327
328
328
/// Runs `f` on each query result in parallel using the given task pool.
329
329
#[ inline]
330
- pub fn par_for_each_mut (
331
- & mut self ,
330
+ pub fn par_for_each_mut < ' a > (
331
+ & ' a mut self ,
332
332
task_pool : & TaskPool ,
333
333
batch_size : usize ,
334
- f : impl Fn ( <Q :: Fetch as Fetch < ' _ , ' _ > >:: Item ) + Send + Sync + Clone ,
334
+ f : impl Fn ( <Q :: Fetch as Fetch < ' a , ' a > >:: Item ) + Send + Sync + Clone ,
335
335
) {
336
336
// SAFE: system runs without conflicts with other systems. same-system queries have runtime
337
337
// borrow checks when they conflict
You can’t perform that action at this time.
0 commit comments