mirror of
https://github.com/openharmony/third_party_rust_mio.git
synced 2026-06-30 20:58:01 -04:00
Update windows-sys to 0.45
This commit is contained in:
committed by
Thomas de Zeeuw
parent
3fce6026fa
commit
08250c06f2
+1
-1
@@ -49,7 +49,7 @@ log = "0.4.8"
|
||||
libc = "0.2.121"
|
||||
|
||||
[target.'cfg(windows)'.dependencies.windows-sys]
|
||||
version = "0.42"
|
||||
version = "0.45"
|
||||
features = [
|
||||
"Win32_Foundation", # Basic types eg HANDLE
|
||||
"Win32_Networking_WinSock", # winsock2 types/functions
|
||||
|
||||
@@ -27,7 +27,7 @@ pub(crate) fn new_ip_socket(addr: SocketAddr, socket_type: u16) -> io::Result<SO
|
||||
SocketAddr::V6(..) => AF_INET6,
|
||||
};
|
||||
|
||||
new_socket(domain, socket_type)
|
||||
new_socket(domain.into(), socket_type)
|
||||
}
|
||||
|
||||
pub(crate) fn new_socket(domain: u32, socket_type: u16) -> io::Result<SOCKET> {
|
||||
|
||||
Reference in New Issue
Block a user