aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command.rs b/src/command.rs
index ca7e4e3..a5df5ed 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -9,11 +9,13 @@ mod async_process;
#[cfg(feature = "tokio")]
mod tokio;
-pub trait Command<T> {
+pub trait Command {
+ type Child;
+
fn spawn_pty(
&mut self,
size: Option<&crate::pty::Size>,
- ) -> Result<Child<T>>;
+ ) -> Result<Child<Self::Child>>;
}
pub struct Child<T> {