aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/tokio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/tokio.rs')
-rw-r--r--src/command/tokio.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/tokio.rs b/src/command/tokio.rs
index f29c247..54bfefb 100644
--- a/src/command/tokio.rs
+++ b/src/command/tokio.rs
@@ -2,11 +2,13 @@ use crate::error::*;
use std::os::unix::io::{AsRawFd as _, FromRawFd as _};
-impl super::Command<tokio::process::Child> for tokio::process::Command {
+impl super::Command for tokio::process::Command {
+ type Child = tokio::process::Child;
+
fn spawn_pty(
&mut self,
size: Option<&crate::pty::Size>,
- ) -> Result<super::Child<tokio::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();