Skip to content

Commit e64751f

Browse files
committed
Fix build
1 parent 2f6a566 commit e64751f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl Socket {
298298
/// This function is only available on Unix when the `reuseport` feature is
299299
/// enabled.
300300
#[cfg(all(unix, feature = "reuseport"))]
301-
fn reuse_port(&self) -> io::Result<bool> {
301+
pub fn reuse_port(&self) -> io::Result<bool> {
302302
self.inner.reuse_port()
303303
}
304304

@@ -311,7 +311,7 @@ impl Socket {
311311
/// This function is only available on Unix when the `reuseport` feature is
312312
/// enabled.
313313
#[cfg(all(unix, feature = "reuseport"))]
314-
fn set_reuse_port(&self, reuse: bool) -> io::Result<()> {
314+
pub fn set_reuse_port(&self, reuse: bool) -> io::Result<()> {
315315
self.inner.set_reuse_port(reuse)
316316
}
317317
}

src/sys/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ impl Socket {
613613
#[cfg(all(unix, feature = "reuseport"))]
614614
pub fn set_reuse_port(&self, reuse: bool) -> io::Result<()> {
615615
unsafe {
616-
self.setsockopt(libc::SOL_SOCKET, libc::SO_REUSEPORT, reuse as c_int)?
616+
self.setsockopt(libc::SOL_SOCKET, libc::SO_REUSEPORT, reuse as c_int)
617617
}
618618
}
619619

0 commit comments

Comments
 (0)