diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-10-22 19:01:37 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-10-23 14:21:15 -0700 |
| commit | 3e4b2bd2b2f48c98dab73c67b0ddf25a80129a3c (patch) | |
| tree | 8a6dad33637190806df8065d73e3b00181541bff /src/libcore/private.rs | |
| parent | f6d2a7143629898aebea58db836eb2009e97d067 (diff) | |
| download | rust-3e4b2bd2b2f48c98dab73c67b0ddf25a80129a3c.tar.gz rust-3e4b2bd2b2f48c98dab73c67b0ddf25a80129a3c.zip | |
core: Use PortOne instead of Future in future_result
Diffstat (limited to 'src/libcore/private.rs')
| -rw-r--r-- | src/libcore/private.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/private.rs b/src/libcore/private.rs index c4298d572b6..e7e9de39ccd 100644 --- a/src/libcore/private.rs +++ b/src/libcore/private.rs @@ -642,7 +642,7 @@ pub mod tests { // Have to get rid of our reference before blocking. { let _x = move x; } // FIXME(#3161) util::ignore doesn't work here let res = option::swap_unwrap(&mut res); - future::get(&res); + res.recv(); } #[test] #[should_fail] #[ignore(cfg(windows))] @@ -657,7 +657,7 @@ pub mod tests { } assert unwrap_exclusive(move x) == ~~"hello"; let res = option::swap_unwrap(&mut res); - future::get(&res); + res.recv(); } #[test] #[ignore(cfg(windows))] |
