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 {
46
46
let path = & addr. sun_path as * const _ as usize ;
47
47
path - base
48
48
}
49
+ #[ allow( dead_code) ]
49
50
pub struct SocketAddr {
50
51
addr : c:: sockaddr_un ,
51
52
len : c_int ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl<'a> Iterator for Incoming<'a> {
60
60
}
61
61
62
62
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
63
- ( usize:: max_value ( ) , None )
63
+ ( usize:: MAX , None )
64
64
}
65
65
}
66
66
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl<'a> io::Write for &'a UnixStream {
88
88
}
89
89
90
90
impl AsSocket for UnixStream {
91
- fn as_socket ( & self ) -> BorrowedSocket {
91
+ fn as_socket ( & self ) -> BorrowedSocket < ' _ > {
92
92
self . 0 . as_socket ( )
93
93
}
94
94
}
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl Socket {
132
132
n => Ok ( Socket :: from_raw ( n) ) ,
133
133
}
134
134
} ?;
135
- socket. 0 . set_no_inherit ( ) ;
135
+ socket. 0 . set_no_inherit ( ) ? ;
136
136
Ok ( socket)
137
137
}
138
138
pub fn new ( addr : & SocketAddr , ty : c_int ) -> io:: Result < Socket > {
You can’t perform that action at this time.
0 commit comments