aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/async_process.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-22 19:58:29 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-22 19:58:29 -0500
commit6e9b300de3409b3bc4a17cf5b845346c918dafd7 (patch)
tree7cad48b0c73df53ce26ba48ad9dbb41bd985ac5c /src/command/async_process.rs
parent5b526af7c0d86158bc0bfc7db0e73dea3bc83cfe (diff)
downloadpty-process-6e9b300de3409b3bc4a17cf5b845346c918dafd7.tar.gz
pty-process-6e9b300de3409b3bc4a17cf5b845346c918dafd7.zip
make child an associated type
Diffstat (limited to 'src/command/async_process.rs')
-rw-r--r--src/command/async_process.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/async_process.rs b/src/command/async_process.rs
index c712289..687fbe4 100644
--- a/src/command/async_process.rs
+++ b/src/command/async_process.rs
@@ -3,11 +3,13 @@ use crate::error::*;
use async_process::unix::CommandExt as _;
use std::os::unix::io::{AsRawFd as _, FromRawFd as _};
-impl super::Command<async_process::Child> for async_process::Command {
+impl super::Command for async_process::Command {
+ type Child = async_process::Child;
+
fn spawn_pty(
&mut self,
size: Option<&crate::pty::Size>,
- ) -> Result<super::Child<async_process::Child>> {
+ ) -> Result<super::Child<Self::Child>> {
let (pty, pts, stdin, stdout, stderr) = super::setup_pty(size)?;
let pt_fd = pty.pt().as_raw_fd();