aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty/async_io.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-06 02:06:08 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-06 02:31:48 -0500
commit0f20c79767ea711931b29525905bf90b1cd4f556 (patch)
treedc91796e5b83abbabc5f54da550080baca41a758 /src/pty/async_io.rs
parent307c55465c1a4c99620382576333d6fc712bf6fd (diff)
downloadpty-process-0f20c79767ea711931b29525905bf90b1cd4f556.tar.gz
pty-process-0f20c79767ea711931b29525905bf90b1cd4f556.zip
swap argument order
Diffstat (limited to 'src/pty/async_io.rs')
-rw-r--r--src/pty/async_io.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pty/async_io.rs b/src/pty/async_io.rs
index 3318ac6..ebba0bf 100644
--- a/src/pty/async_io.rs
+++ b/src/pty/async_io.rs
@@ -38,7 +38,7 @@ impl super::Pty for Pty {
.read(true)
.write(true)
.open(&self.ptsname)
- .map_err(|e| Error::OpenPts(self.ptsname.clone(), e))?;
+ .map_err(|e| Error::OpenPts(e, self.ptsname.clone()))?;
Ok(fh)
}