File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -240,15 +240,15 @@ pub trait AsFd {
240
240
}
241
241
242
242
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
243
- impl < T : AsFd > AsFd for & T {
243
+ impl < T : AsFd + ? Sized > AsFd for & T {
244
244
#[ inline]
245
245
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
246
246
T :: as_fd ( self )
247
247
}
248
248
}
249
249
250
250
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
251
- impl < T : AsFd > AsFd for & mut T {
251
+ impl < T : AsFd + ? Sized > AsFd for & mut T {
252
252
#[ inline]
253
253
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
254
254
T :: as_fd ( self )
@@ -392,23 +392,23 @@ impl From<OwnedFd> for crate::net::UdpSocket {
392
392
/// impl MyTrait for Box<UdpSocket> {}
393
393
/// # }
394
394
/// ```
395
- impl < T : AsFd > AsFd for crate :: sync:: Arc < T > {
395
+ impl < T : AsFd + ? Sized > AsFd for crate :: sync:: Arc < T > {
396
396
#[ inline]
397
397
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
398
398
( * * self ) . as_fd ( )
399
399
}
400
400
}
401
401
402
402
#[ stable( feature = "asfd_rc" , since = "1.69.0" ) ]
403
- impl < T : AsFd > AsFd for crate :: rc:: Rc < T > {
403
+ impl < T : AsFd + ? Sized > AsFd for crate :: rc:: Rc < T > {
404
404
#[ inline]
405
405
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
406
406
( * * self ) . as_fd ( )
407
407
}
408
408
}
409
409
410
410
#[ stable( feature = "asfd_ptrs" , since = "1.64.0" ) ]
411
- impl < T : AsFd > AsFd for Box < T > {
411
+ impl < T : AsFd + ? Sized > AsFd for Box < T > {
412
412
#[ inline]
413
413
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
414
414
( * * self ) . as_fd ( )
You can’t perform that action at this time.
0 commit comments