File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
sys/net/connection/socket Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ fn sun_path_offset(addr: &c::sockaddr_un) -> usize {
4646 let path = & addr. sun_path as * const _ as usize ;
4747 path - base
4848}
49+ #[ allow( dead_code) ]
4950pub struct SocketAddr {
5051 addr : c:: sockaddr_un ,
5152 len : c_int ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl<'a> Iterator for Incoming<'a> {
6060 }
6161
6262 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
63- ( usize:: max_value ( ) , None )
63+ ( usize:: MAX , None )
6464 }
6565}
6666
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl<'a> io::Write for &'a UnixStream {
8888}
8989
9090impl AsSocket for UnixStream {
91- fn as_socket ( & self ) -> BorrowedSocket {
91+ fn as_socket ( & self ) -> BorrowedSocket < ' _ > {
9292 self . 0 . as_socket ( )
9393 }
9494}
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl Socket {
132132 n => Ok ( Socket :: from_raw ( n) ) ,
133133 }
134134 } ?;
135- socket. 0 . set_no_inherit ( ) ;
135+ socket. 0 . set_no_inherit ( ) ? ;
136136 Ok ( socket)
137137 }
138138 pub fn new ( addr : & SocketAddr , ty : c_int ) -> io:: Result < Socket > {
You can’t perform that action at this time.
0 commit comments