diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-05-11 12:48:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 12:48:38 -0400 |
commit | 0ea6b51bf038108ba62577f7585bc76413f1f199 (patch) | |
tree | 7381a264701338196d0db4973ea971a1bf45ecdd /runtime/ops/process.rs | |
parent | b67f874b3fb172168997be410b1d5e3c3109c763 (diff) |
fix: stdout and stderr encoding on Windows (#14559)
Diffstat (limited to 'runtime/ops/process.rs')
-rw-r--r-- | runtime/ops/process.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index e22ed3ac3..ab303e210 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -93,10 +93,7 @@ impl StdioOrRid { ) -> Result<std::process::Stdio, AnyError> { match &self { StdioOrRid::Stdio(val) => Ok(val.as_stdio()), - StdioOrRid::Rid(rid) => { - let file = StdFileResource::clone_file(state, *rid)?; - Ok(file.into()) - } + StdioOrRid::Rid(rid) => StdFileResource::as_stdio(state, *rid), } } } |