From c7867ba4b5613d459b4cabb0c4e5171049905135 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 14 Jun 2022 13:14:53 +1000 Subject: [PATCH] Rm `From for Stdio` impl to avoid using `io_lifetimes` in public API. Signed-off-by: Jiahao XU --- src/stdio.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/stdio.rs b/src/stdio.rs index a416e7979..e1712dd75 100644 --- a/src/stdio.rs +++ b/src/stdio.rs @@ -75,12 +75,6 @@ impl From for process::Stdio { } } -impl From for Stdio { - fn from(fd: OwnedFd) -> Self { - Self(StdioImpl::Fd(fd)) - } -} - macro_rules! impl_from_for_stdio { ($type:ty) => { impl From<$type> for Stdio {