Fix the stable version of AsFd for Arc<T>
and Box<T>
These merged in #97437 for 1.64.0, apart from the main `io_safety` feature that stabilized in 1.63.0.
This commit is contained in:
parent
14dbfebfa2
commit
bd0474d24a
|
@ -356,7 +356,7 @@ impl From<OwnedFd> for crate::net::UdpSocket {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "io_safety", since = "1.63.0")]
|
||||
#[stable(feature = "asfd_ptrs", since = "1.64.0")]
|
||||
/// This impl allows implementing traits that require `AsFd` on Arc.
|
||||
/// ```
|
||||
/// # #[cfg(any(unix, target_os = "wasi"))] mod group_cfg {
|
||||
|
@ -379,7 +379,7 @@ impl<T: AsFd> AsFd for crate::sync::Arc<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "io_safety", since = "1.63.0")]
|
||||
#[stable(feature = "asfd_ptrs", since = "1.64.0")]
|
||||
impl<T: AsFd> AsFd for Box<T> {
|
||||
#[inline]
|
||||
fn as_fd(&self) -> BorrowedFd<'_> {
|
||||
|
|
Loading…
Reference in a new issue