Skip to content

Commit a65eb18

Browse files
committed
factor out the shared_thread module into its own crate
https://github.com/oconnor663/shared_thread.rs
1 parent e3294c4 commit a65eb18

File tree

3 files changed

+3
-149
lines changed

3 files changed

+3
-149
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ edition = "2021"
1313
[dependencies]
1414
os_pipe = "1.0.0"
1515
shared_child = "1.0.0"
16+
shared_thread = "0.1.0"
1617

1718
[target.'cfg(unix)'.dependencies]
1819
libc = "0.2.43"

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ use std::os::windows::prelude::*;
109109
#[cfg(unix)]
110110
pub mod unix;
111111

112-
mod shared_thread;
113112
use shared_thread::SharedThread;
114113

115114
// enums defined below
@@ -1133,13 +1132,13 @@ fn wait_on_handle_and_output(
11331132
let (maybe_stdout_reader, maybe_stderr_reader) = &mut *unique_lock;
11341133
let stdout: Vec<u8> = maybe_stdout_reader
11351134
.take()
1136-
.map(SharedThread::into_result)
1135+
.map(SharedThread::into_output)
11371136
.transpose()
11381137
.expect("IO errors already short-circuited")
11391138
.unwrap_or_default();
11401139
let stderr: Vec<u8> = maybe_stderr_reader
11411140
.take()
1142-
.map(SharedThread::into_result)
1141+
.map(SharedThread::into_output)
11431142
.transpose()
11441143
.expect("IO errors already short-circuited")
11451144
.unwrap_or_default();

src/shared_thread.rs

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)