File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ impl Socket {
298
298
/// This function is only available on Unix when the `reuseport` feature is
299
299
/// enabled.
300
300
#[ cfg( all( unix, feature = "reuseport" ) ) ]
301
- fn reuse_port ( & self ) -> io:: Result < bool > {
301
+ pub fn reuse_port ( & self ) -> io:: Result < bool > {
302
302
self . inner . reuse_port ( )
303
303
}
304
304
@@ -311,7 +311,7 @@ impl Socket {
311
311
/// This function is only available on Unix when the `reuseport` feature is
312
312
/// enabled.
313
313
#[ 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 < ( ) > {
315
315
self . inner . set_reuse_port ( reuse)
316
316
}
317
317
}
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ impl Socket {
613
613
#[ cfg( all( unix, feature = "reuseport" ) ) ]
614
614
pub fn set_reuse_port ( & self , reuse : bool ) -> io:: Result < ( ) > {
615
615
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 )
617
617
}
618
618
}
619
619
You can’t perform that action at this time.
0 commit comments