1 2 3 4 5 6 7 8
// Copyright (c) The nextest Contributors // SPDX-License-Identifier: MIT OR Apache-2.0 use std::{fs::File, io::PipeReader, os::fd::OwnedFd}; pub(super) fn pipe_reader_to_file(rx: PipeReader) -> File { File::from(OwnedFd::from(rx)) }