From f9c5cb86304748baf0da99126bf75c5a3cd3e773 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 5 Jan 2022 07:30:34 -0500 Subject: and more simplification --- src/pipeline/builtins/command.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/pipeline/builtins/command.rs') diff --git a/src/pipeline/builtins/command.rs b/src/pipeline/builtins/command.rs index b69463b..fd5e322 100644 --- a/src/pipeline/builtins/command.rs +++ b/src/pipeline/builtins/command.rs @@ -1,5 +1,4 @@ -use async_std::io::{ReadExt as _, WriteExt as _}; -use std::os::unix::io::{AsRawFd as _, FromRawFd as _, IntoRawFd as _}; +use crate::pipeline::prelude::*; pub struct Command { exe: crate::parse::Exe, @@ -41,7 +40,7 @@ impl Command { self.io.pre_exec(f); } - pub fn spawn(self, env: &crate::Env) -> anyhow::Result { + pub fn spawn(self, env: &Env) -> anyhow::Result { let Self { f, exe, io } = self; (f)(exe, env, io) } -- cgit v1.2.3-54-g00ecf