diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-06 02:06:08 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-06 02:31:48 -0500 |
commit | 0f20c79767ea711931b29525905bf90b1cd4f556 (patch) | |
tree | dc91796e5b83abbabc5f54da550080baca41a758 /src/pty/async_io.rs | |
parent | 307c55465c1a4c99620382576333d6fc712bf6fd (diff) | |
download | pty-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.rs | 2 |
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) } |