Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not clone for ListenersEvent::Closed
We would like to avoid clones where possible for efficiency reasons. When returning a `ListenersEvent::Closed` we are already consuming the listener (by way of a pin projection). We can therefore use a consuming iterator instead of cloning. Use `drain(..).collect()` instead of clone to consume the addresses when returning a `ListenersEvent::Closed`.
- Loading branch information