mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-26 05:44:26 +00:00
Update library/std/src/os/windows/io/socket.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
a23ca7ceb1
commit
1c6bf04edb
@ -98,7 +98,7 @@ impl FromRawSocket for OwnedSocket {
|
|||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// The resource pointed to by `raw` must be open and suitable for assuming
|
/// The resource pointed to by `raw` must be open and suitable for assuming
|
||||||
/// ownership.
|
/// ownership. The resource must not require cleanup other than `closesocket`.
|
||||||
#[inline]
|
#[inline]
|
||||||
unsafe fn from_raw_socket(raw: RawSocket) -> Self {
|
unsafe fn from_raw_socket(raw: RawSocket) -> Self {
|
||||||
debug_assert_ne!(raw, c::INVALID_SOCKET as RawSocket);
|
debug_assert_ne!(raw, c::INVALID_SOCKET as RawSocket);
|
||||||
|
Loading…
Reference in New Issue
Block a user