Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix potential double close on windows (#317)
If `.metadata` returns an `err`, then both `file` and `sys_file` will be dropped, closing the handle twice. Use ManuallyDrop to pre-declare the intention to not close `sys_file`. This is more of a bug report than a pull request. I haven't tested the code, and I don't intend to, feel free to take over this!
- Loading branch information