diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-02-24 04:40:02 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-02-24 04:40:02 -0500 |
commit | cc06e4fc8557f9c277c3875ca550ea2d567e8599 (patch) | |
tree | a6382023eee4681645e7f6fbc66312d0f470d13c /src/pty/async_io.rs | |
parent | 27aa8c71d7946c3a11f76c7493afb9d827ada4bd (diff) | |
download | pty-process-cc06e4fc8557f9c277c3875ca550ea2d567e8599.tar.gz pty-process-cc06e4fc8557f9c277c3875ca550ea2d567e8599.zip |
make the tokio pty backend actually work properly
Diffstat (limited to 'src/pty/async_io.rs')
-rw-r--r-- | src/pty/async_io.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pty/async_io.rs b/src/pty/async_io.rs index 3021f7a..7f45050 100644 --- a/src/pty/async_io.rs +++ b/src/pty/async_io.rs @@ -29,6 +29,10 @@ impl super::Pty for Pty { &self.pt } + fn pt_mut(&mut self) -> &mut Self::Pt { + &mut self.pt + } + fn pts(&self) -> Result<std::fs::File> { let fh = std::fs::OpenOptions::new() .read(true) |