Skip to content

Commit

Permalink
Fix another Windows compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Sep 9, 2021
1 parent c986c6b commit 2d6a4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/os/windows/io/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d6a4c8

Please sign in to comment.