Skip to content

Commit 908141c

Browse files
committed
Mark FromRawFd impl for Stdio as deprecated
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 6b1bcb3 commit 908141c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stdio.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ impl Stdio {
6767
/// NOTE that the fd must be in blocking mode, otherwise
6868
/// ssh might not flush all output since it considers
6969
/// (`EAGAIN`/`EWOULDBLOCK`) as an error
70+
#[allow(useless_deprecated)]
71+
#[deprecated(since = "0.9.8", note = "Use Stdio::from_raw_fd_owned instead")]
7072
impl FromRawFd for Stdio {
7173
unsafe fn from_raw_fd(fd: RawFd) -> Self {
7274
Self(StdioImpl::Fd(OwnedFd::from_raw_fd(fd), false))

0 commit comments

Comments
 (0)