We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be483ff commit a0ce5f2Copy full SHA for a0ce5f2
library/std/src/os/unix/net/listener.rs
@@ -274,15 +274,15 @@ impl AsFd for UnixListener {
274
impl From<OwnedFd> for UnixListener {
275
#[inline]
276
fn from(fd: OwnedFd) -> UnixListener {
277
- UnixListener(Socket::from_inner(FromInner::from_inner(OwnedFd::from(fd))))
+ UnixListener(Socket::from_inner(FromInner::from_inner(fd)))
278
}
279
280
281
#[unstable(feature = "io_safety", issue = "87074")]
282
impl From<UnixListener> for OwnedFd {
283
284
fn from(listener: UnixListener) -> OwnedFd {
285
- listener.0.into_inner().into_inner().into()
+ listener.0.into_inner().into_inner()
286
287
288
0 commit comments