Update windows-sys to 0.45

This commit is contained in:
Taiki Endo
2023-01-21 10:35:35 +09:00
committed by Thomas de Zeeuw
parent 3fce6026fa
commit 08250c06f2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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> {