File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ pub mod net {
184
184
unimpl ! ( ) ;
185
185
}
186
186
187
+ #[ inline]
187
188
pub fn socket ( & self ) -> & Socket {
188
189
& self . inner
189
190
}
@@ -306,6 +307,7 @@ pub mod net {
306
307
unimpl ! ( ) ;
307
308
}
308
309
310
+ #[ inline]
309
311
pub fn socket ( & self ) -> & Socket {
310
312
& self . inner
311
313
}
@@ -372,6 +374,7 @@ pub mod net {
372
374
unimpl ! ( ) ;
373
375
}
374
376
377
+ #[ inline]
375
378
pub fn socket ( & self ) -> & Socket {
376
379
& self . inner
377
380
}
Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ impl TcpStream {
185
185
}
186
186
}
187
187
188
+ #[ inline]
188
189
pub fn socket ( & self ) -> & Socket {
189
190
& self . inner
190
191
}
@@ -275,6 +276,7 @@ impl TcpListener {
275
276
}
276
277
}
277
278
279
+ #[ inline]
278
280
pub fn socket ( & self ) -> & Socket {
279
281
& self . inner
280
282
}
@@ -438,6 +440,7 @@ impl UdpSocket {
438
440
unsupported ( )
439
441
}
440
442
443
+ #[ inline]
441
444
pub fn socket ( & self ) -> & Socket {
442
445
& self . inner
443
446
}
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ impl TcpStream {
239
239
Ok ( TcpStream { inner : sock } )
240
240
}
241
241
242
+ #[ inline]
242
243
pub fn socket ( & self ) -> & Socket {
243
244
& self . inner
244
245
}
@@ -428,6 +429,7 @@ impl TcpListener {
428
429
Ok ( TcpListener { inner : sock } )
429
430
}
430
431
432
+ #[ inline]
431
433
pub fn socket ( & self ) -> & Socket {
432
434
& self . inner
433
435
}
@@ -518,6 +520,7 @@ impl UdpSocket {
518
520
Ok ( UdpSocket { inner : sock } )
519
521
}
520
522
523
+ #[ inline]
521
524
pub fn socket ( & self ) -> & Socket {
522
525
& self . inner
523
526
}
You can’t perform that action at this time.
0 commit comments