Skip to content

Commit

Permalink
Update windows-sys to 0.45
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and Thomasdezeeuw committed Jan 21, 2023
1 parent 533c040 commit fa4e4b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sys/windows/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit fa4e4b3

Please sign in to comment.