From 6e9b300de3409b3bc4a17cf5b845346c918dafd7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 22 Feb 2021 19:58:29 -0500 Subject: make child an associated type --- src/command/async_process.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/command/async_process.rs') 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 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> { + ) -> Result> { let (pty, pts, stdin, stdout, stderr) = super::setup_pty(size)?; let pt_fd = pty.pt().as_raw_fd(); -- cgit v1.2.3-54-g00ecf