(
thread: thread::JoinHandle<std::io::Result<Vec<u8>>>,
)
| 125 | } |
| 126 | |
| 127 | fn join_reader( |
| 128 | thread: thread::JoinHandle<std::io::Result<Vec<u8>>>, |
| 129 | ) -> Result<Vec<u8>, ChangeSourceError> { |
| 130 | thread |
| 131 | .join() |
| 132 | .map_err(|_| ChangeSourceError::Unavailable("process output reader panicked".into()))? |
| 133 | .map_err(|error| ChangeSourceError::Unavailable(error.to_string())) |
| 134 | } |