(&self)
| 223 | } |
| 224 | |
| 225 | fn stderr_path(&self) -> Result<PathBuf> { |
| 226 | let stderr_path = |
| 227 | unsafe { std::slice::from_raw_parts(self.stderr_path_ptr, self.stderr_path_len) }; |
| 228 | let stderr_path = |
| 229 | std::str::from_utf8(stderr_path).context("given stderr path is not valid UTF-8")?; |
| 230 | Ok(stderr_path.into()) |
| 231 | } |
| 232 | |
| 233 | fn stdin_path(&self) -> Result<Option<PathBuf>> { |
| 234 | if self.stdin_path_ptr.is_null() { |
no test coverage detected