1
Fork 0

Update tests for the Send - 'static change.

This commit is contained in:
Huon Wilson 2015-02-17 23:48:32 +11:00
parent adfcd93f0c
commit 7a14f4994e
25 changed files with 52 additions and 183 deletions

View file

@ -458,7 +458,7 @@ impl Child {
/// the parent waits for the child to exit.
pub fn wait_with_output(mut self) -> io::Result<Output> {
drop(self.stdin.take());
fn read<T: Read + Send>(stream: Option<T>) -> Receiver<io::Result<Vec<u8>>> {
fn read<T: Read + Send + 'static>(stream: Option<T>) -> Receiver<io::Result<Vec<u8>>> {
let (tx, rx) = channel();
match stream {
Some(stream) => {