diff options
Diffstat (limited to 'src/command.rs')
-rw-r--r-- | src/command.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.rs b/src/command.rs index 4679579..96ece15 100644 --- a/src/command.rs +++ b/src/command.rs @@ -24,6 +24,8 @@ impl<T> Command for T where T: CommandImpl, T::Pty: crate::pty::Pty, + <<T as CommandImpl>::Pty as crate::pty::Pty>::Pt: + ::std::os::unix::io::AsRawFd, { type Child = T::Child; type Pty = T::Pty; @@ -82,7 +84,7 @@ impl<C, P> Child<C, P> where P: crate::pty::Pty, { - pub fn pty(&self) -> &::std::fs::File { + pub fn pty(&self) -> &P::Pt { self.pty.pt() } |