You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OwningIter is just a wrapper around Dir which implements AsRawFd which makes this easy (or even trivial) to implement.
The only thing that I could think of this may be unsound is after calling drop() on Dir will make the RawFd invalid but this is the same as AsRawFd for Dir which will also suffer from this issue. Link is the discussion of AsRawFd in stdlib.