diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-29 02:55:24 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-29 03:52:12 -0500 |
commit | 3b550f5d3dad77a56455352579fae3071b42e86d (patch) | |
tree | 393de5f206d227ec71149f478db900291357c456 /src/command/async_process.rs | |
parent | f8780ca1e76286688b74d8a6c64d5fadf3cfd2a1 (diff) | |
download | pty-process-3b550f5d3dad77a56455352579fae3071b42e86d.tar.gz pty-process-3b550f5d3dad77a56455352579fae3071b42e86d.zip |
wip another complete refactor
Diffstat (limited to 'src/command/async_process.rs')
-rw-r--r-- | src/command/async_process.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/command/async_process.rs b/src/command/async_process.rs deleted file mode 100644 index a0aaa47..0000000 --- a/src/command/async_process.rs +++ /dev/null @@ -1,32 +0,0 @@ -use async_process::unix::CommandExt as _; - -impl super::Impl for async_process::Command { - type Child = async_process::Child; - - fn new_impl(program: &::std::ffi::OsStr) -> Self { - Self::new(program) - } - - fn stdin_impl(&mut self, cfg: ::std::process::Stdio) { - self.stdin(cfg); - } - - fn stdout_impl(&mut self, cfg: ::std::process::Stdio) { - self.stdout(cfg); - } - - fn stderr_impl(&mut self, cfg: ::std::process::Stdio) { - self.stderr(cfg); - } - - unsafe fn pre_exec_impl<F>(&mut self, f: F) - where - F: FnMut() -> ::std::io::Result<()> + Send + Sync + 'static, - { - self.pre_exec(f); - } - - fn spawn_impl(&mut self) -> crate::Result<Self::Child> { - self.spawn().map_err(crate::error::spawn) - } -} |