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 @@ -244,15 +244,15 @@ pub trait AsFd {
244
244
}
245
245
246
246
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
247
- impl < T : AsFd > AsFd for & T {
247
+ impl < T : AsFd + ? Sized > AsFd for & T {
248
248
#[ inline]
249
249
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
250
250
T :: as_fd ( self )
251
251
}
252
252
}
253
253
254
254
#[ stable( feature = "io_safety" , since = "1.63.0" ) ]
255
- impl < T : AsFd > AsFd for & mut T {
255
+ impl < T : AsFd + ? Sized > AsFd for & mut T {
256
256
#[ inline]
257
257
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
258
258
T :: as_fd ( self )
@@ -396,23 +396,23 @@ impl From<OwnedFd> for crate::net::UdpSocket {
396
396
/// impl MyTrait for Box<UdpSocket> {}
397
397
/// # }
398
398
/// ```
399
- impl < T : AsFd > AsFd for crate :: sync:: Arc < T > {
399
+ impl < T : AsFd + ? Sized > AsFd for crate :: sync:: Arc < T > {
400
400
#[ inline]
401
401
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
402
402
( * * self ) . as_fd ( )
403
403
}
404
404
}
405
405
406
406
#[ stable( feature = "asfd_rc" , since = "1.69.0" ) ]
407
- impl < T : AsFd > AsFd for crate :: rc:: Rc < T > {
407
+ impl < T : AsFd + ? Sized > AsFd for crate :: rc:: Rc < T > {
408
408
#[ inline]
409
409
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
410
410
( * * self ) . as_fd ( )
411
411
}
412
412
}
413
413
414
414
#[ stable( feature = "asfd_ptrs" , since = "1.64.0" ) ]
415
- impl < T : AsFd > AsFd for Box < T > {
415
+ impl < T : AsFd + ? Sized > AsFd for Box < T > {
416
416
#[ inline]
417
417
fn as_fd ( & self ) -> BorrowedFd < ' _ > {
418
418
( * * self ) . as_fd ( )
You can’t perform that action at this time.
0 commit comments