Skip to content

Commit e6e5c91

Browse files
committed
Fix Windows build
Signed-off-by: John Nunley <[email protected]>
1 parent d66b558 commit e6e5c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ fn connect(
20952095
let flags = rn::SocketFlags::empty();
20962096

20972097
// Create the socket.
2098-
let socket = rn::socket_with(domain, rn::SocketFlags::STREAM, flags, protocol)?;
2098+
let socket = rn::socket_with(domain, rn::SocketType::STREAM, flags, protocol)?;
20992099

21002100
// Set cloexec if necessary.
21012101
#[cfg(any(

0 commit comments

Comments
 (0)