aboutsummaryrefslogtreecommitdiffstats
path: root/src/blocking/pty.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-08-06 18:30:40 -0400
committerJesse Luehrs <doy@tozt.net>2023-08-06 18:30:40 -0400
commit54e8bf4f2e91407be2054cd38fea81ba830303fd (patch)
tree2ee35f81282d8af91450969f89b42623fd11ec3d /src/blocking/pty.rs
parentdb967551c7d7ee4f38b4fb6ee8d4dd998ad9c871 (diff)
downloadpty-process-54e8bf4f2e91407be2054cd38fea81ba830303fd.tar.gz
pty-process-54e8bf4f2e91407be2054cd38fea81ba830303fd.zip
convert to rustix
it seems more maintained, and hopefully this will fix compile issues on macos
Diffstat (limited to 'src/blocking/pty.rs')
-rw-r--r--src/blocking/pty.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/blocking/pty.rs b/src/blocking/pty.rs
index 445f102..fab88a2 100644
--- a/src/blocking/pty.rs
+++ b/src/blocking/pty.rs
@@ -44,33 +44,33 @@ impl std::os::fd::AsFd for Pty {
impl std::io::Read for Pty {
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
- self.0 .0.read(buf)
+ self.0.read(buf)
}
}
impl std::io::Write for Pty {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
- self.0 .0.write(buf)
+ self.0.write(buf)
}
fn flush(&mut self) -> std::io::Result<()> {
- self.0 .0.flush()
+ self.0.flush()
}
}
impl std::io::Read for &Pty {
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
- (&self.0 .0).read(buf)
+ (&self.0).read(buf)
}
}
impl std::io::Write for &Pty {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
- (&self.0 .0).write(buf)
+ (&self.0).write(buf)
}
fn flush(&mut self) -> std::io::Result<()> {
- (&self.0 .0).flush()
+ (&self.0).flush()
}
}