summaryrefslogtreecommitdiffstats
path: root/src/runner/command.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-26 15:44:13 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-26 15:44:13 -0500
commit07ed5629fff12ccb95216f7b07c91bb6e8bbfbc7 (patch)
tree2e6e6628cb7bbef52e8eeb66a90e69562d2ad09a /src/runner/command.rs
parent6015f1000e09e72d1355105921294e2c37cf1fc2 (diff)
downloadnbsh-07ed5629fff12ccb95216f7b07c91bb6e8bbfbc7.tar.gz
nbsh-07ed5629fff12ccb95216f7b07c91bb6e8bbfbc7.zip
remove the mutex for builtin fds
Diffstat (limited to 'src/runner/command.rs')
-rw-r--r--src/runner/command.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/runner/command.rs b/src/runner/command.rs
index c7224e6..efbf166 100644
--- a/src/runner/command.rs
+++ b/src/runner/command.rs
@@ -150,12 +150,12 @@ pub enum Inner {
Builtin(super::builtins::Command),
}
-pub enum Child<'a> {
+pub enum Child {
Binary(tokio::process::Child),
- Builtin(super::builtins::Child<'a>),
+ Builtin(super::builtins::Child),
}
-impl<'a> Child<'a> {
+impl Child {
pub fn id(&self) -> Option<u32> {
match self {
Self::Binary(child) => child.id(),
@@ -170,8 +170,7 @@ impl<'a> Child<'a> {
dyn std::future::Future<
Output = anyhow::Result<std::process::ExitStatus>,
> + Send
- + Sync
- + 'a,
+ + Sync,
>,
> {
Box::pin(async move {