with_children
takes a FnMut which prevents some use cases
#531
Labels
A-ECS
Entities, components, systems, and events
C-Code-Quality
A section of code that is hard to understand or change
C-Feature
A new feature, making something new possible
FnMut prevents transferring ownership.
For example, the following will not compile.
This is because FnMut can be called multiple times. I believe Commands will only call this function once so it shouldn't be a problem.
This should be a simple change. I'm pretty sure we can just change the input from a FnMut to a FnOnce.
I am completely willing to implement this myself.
The text was updated successfully, but these errors were encountered: