about summary refs log tree commit diff
path: root/src/libcore/private.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-10-22 19:01:37 -0700
committerBrian Anderson <banderson@mozilla.com>2012-10-23 14:21:15 -0700
commit3e4b2bd2b2f48c98dab73c67b0ddf25a80129a3c (patch)
tree8a6dad33637190806df8065d73e3b00181541bff /src/libcore/private.rs
parentf6d2a7143629898aebea58db836eb2009e97d067 (diff)
downloadrust-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.rs4
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))]