diff --git a/crates/bevy_utils/src/parallel_queue.rs b/crates/bevy_utils/src/parallel_queue.rs index 2126f74104..61741da4f2 100644 --- a/crates/bevy_utils/src/parallel_queue.rs +++ b/crates/bevy_utils/src/parallel_queue.rs @@ -51,10 +51,7 @@ where /// chunk will be dropped, and the rest of the undrained elements will remain. /// /// The ordering is not guaranteed. - pub fn drain(&mut self) -> impl Iterator + '_ - where - B: FromIterator, - { + pub fn drain(&mut self) -> impl Iterator + '_ { self.locals.iter_mut().flat_map(|item| item.take()) } }