aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-24 04:47:08 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-24 04:47:08 -0500
commitdb4a7d7d32b702736940aa0bd8d11c2ed8645b99 (patch)
treee0ff91244a96eaf2254f07c17a40ecd5798b42b8
parentc603c2b7a48ce7fedce520abe09bbc0cddb1d881 (diff)
downloadpty-process-db4a7d7d32b702736940aa0bd8d11c2ed8645b99.tar.gz
pty-process-db4a7d7d32b702736940aa0bd8d11c2ed8645b99.zip
clippy
-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 7f45050..3318ac6 100644
--- a/src/pty/async_io.rs
+++ b/src/pty/async_io.rs
@@ -20,7 +20,7 @@ impl super::Pty for Pty {
// File object to take full ownership.
let pt = unsafe { std::fs::File::from_raw_fd(pt_fd) };
- let pt = async_io::Async::new(pt).map_err(|e| Error::AsyncPty(e))?;
+ let pt = async_io::Async::new(pt).map_err(Error::AsyncPty)?;
Ok(Self { pt, ptsname })
}