From fa4e4b3c58af76909d047abd81d3eaca1d8c5736 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 21 Jan 2023 10:35:35 +0900 Subject: [PATCH] Update windows-sys to 0.45 --- Cargo.toml | 2 +- src/sys/windows/net.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c5052a70a..dc037dcfe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/src/sys/windows/net.rs b/src/sys/windows/net.rs index e8d32b3dc..44f459a7e 100644 --- a/src/sys/windows/net.rs +++ b/src/sys/windows/net.rs @@ -27,7 +27,7 @@ pub(crate) fn new_ip_socket(addr: SocketAddr, socket_type: u16) -> io::Result 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 {