We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This panics:
std::os::unix::io::IntoRawFd::into_raw_fd(same_file::Handle::stdin().unwrap())
The Option<File> field is treated carelessly, and so the reassuring “unwrapping won’t panic” comment in the Drop implementation is wrong.
Option<File>
Drop
Really, Option is the wrong tool to use here; it should be ManuallyDrop these days (✓ available within the current MSRV).
Option
ManuallyDrop
The text was updated successfully, but these errors were encountered:
(I found this as part of a detailed review.)
Sorry, something went wrong.
No branches or pull requests
This panics:
The
Option<File>
field is treated carelessly, and so the reassuring “unwrapping won’t panic” comment in theDrop
implementation is wrong.Really,
Option
is the wrong tool to use here; it should beManuallyDrop
these days (✓ available within the current MSRV).The text was updated successfully, but these errors were encountered: