From 5dfd1f7a7734038eed310729e907313e7b499d68 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jan 2022 19:53:21 -0500 Subject: cleanups --- src/pipeline/builtins/command.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pipeline/builtins/command.rs') diff --git a/src/pipeline/builtins/command.rs b/src/pipeline/builtins/command.rs index 3a1dd91..40498fc 100644 --- a/src/pipeline/builtins/command.rs +++ b/src/pipeline/builtins/command.rs @@ -134,7 +134,7 @@ impl Io { } fn stdin(&self) -> Option> { - self.fds.get(&0).map(async_std::sync::Arc::clone) + self.fds.get(&0).map(crate::mutex::clone) } pub fn set_stdin(&mut self, stdin: T) { @@ -150,7 +150,7 @@ impl Io { } fn stdout(&self) -> Option> { - self.fds.get(&1).map(async_std::sync::Arc::clone) + self.fds.get(&1).map(crate::mutex::clone) } pub fn set_stdout(&mut self, stdout: T) { @@ -166,7 +166,7 @@ impl Io { } fn stderr(&self) -> Option> { - self.fds.get(&2).map(async_std::sync::Arc::clone) + self.fds.get(&2).map(crate::mutex::clone) } pub fn set_stderr(&mut self, stderr: T) { @@ -185,7 +185,7 @@ impl Io { for redirect in redirects { let to = match &redirect.to { crate::parse::RedirectTarget::Fd(fd) => { - async_std::sync::Arc::clone(&self.fds[fd]) + crate::mutex::clone(&self.fds[fd]) } crate::parse::RedirectTarget::File(path) => { let fd = redirect.dir.open(path).unwrap(); -- cgit v1.2.3-54-g00ecf