diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-04 00:01:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-06 23:00:01 -0700 |
| commit | 75014f7b1790e7ebdf13d38acc04dfdab6e450e9 (patch) | |
| tree | 46fb046e002a37ba60f6e8b8ef5ee0675fbb7fd8 /src/libstd/task.rs | |
| parent | d743b8831e6dc5b390af112cc23159d667cf583b (diff) | |
| download | rust-75014f7b1790e7ebdf13d38acc04dfdab6e450e9.tar.gz rust-75014f7b1790e7ebdf13d38acc04dfdab6e450e9.zip | |
libs: Fix miscellaneous fallout of librustrt
Diffstat (limited to 'src/libstd/task.rs')
| -rw-r--r-- | src/libstd/task.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs index 55ebba69d90..9ee62ee3d81 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -182,14 +182,8 @@ impl TaskBuilder { }; if stdout.is_some() || stderr.is_some() { t.spawn_sibling(opts, proc() { - match stdout { - Some(handle) => { let _ = stdio::set_stdout(handle); } - None => {} - } - match stderr { - Some(handle) => { let _ = stdio::set_stderr(handle); } - None => {} - } + let _ = stdout.map(stdio::set_stdout); + let _ = stderr.map(stdio::set_stderr); f(); }); } else { |
