1
Fork 0

Fix another Windows compilation error.

This commit is contained in:
Dan Gohman 2021-09-09 15:37:43 -07:00
parent c986c6b4ff
commit 2d6a4c85ca

View file

@ -126,7 +126,7 @@ impl OwnedSocket {
#[cfg(not(target_vendor = "uwp"))]
pub(crate) fn set_no_inherit(&self) -> io::Result<()> {
sys::cvt(unsafe {
cvt(unsafe {
c::SetHandleInformation(self.as_raw_socket() as c::HANDLE, c::HANDLE_FLAG_INHERIT, 0)
})
.map(drop)