Skip to content

Commit

Permalink
can't lol
Browse files Browse the repository at this point in the history
  • Loading branch information
kotauskas committed Apr 26, 2024
1 parent db798c0 commit 9a1727d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/os/unix/uds_local_socket/tokio/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ impl TryFrom<Listener> for OwnedFd {
}
}
impl TryFrom<OwnedFd> for Listener {
// TODO(2.0.0) use FromFdError
type Error = io::Error;
fn try_from(fd: OwnedFd) -> io::Result<Self> {
Self::try_from(SyncListener::from(fd))
Expand Down
2 changes: 0 additions & 2 deletions src/os/unix/uds_local_socket/tokio/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,13 @@ impl AsyncWrite for &Stream {
}
}
impl TryFrom<Stream> for OwnedFd {
// TODO(2.0.0) use FromFdError
type Error = io::Error;
#[inline]
fn try_from(slf: Stream) -> io::Result<Self> {
Ok(slf.0.into_std()?.into())
}
}
impl TryFrom<OwnedFd> for Stream {
// TODO(2.0.0) use FromFdError
type Error = io::Error;
#[inline]
fn try_from(fd: OwnedFd) -> io::Result<Self> {
Expand Down

0 comments on commit 9a1727d

Please sign in to comment.