about summary refs log tree commit diff
path: root/src/libstd/timer.rs
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-05-08 22:44:43 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-05-09 14:00:53 -0400
commit2bc12635a24abf710304c06a91dbf3709cba8fd4 (patch)
treecd71da4f973f0702a6211db63b6aa5f66c1f2cb8 /src/libstd/timer.rs
parentd82d9874a6f88e0afa021796e9efaba5b3670c31 (diff)
downloadrust-2bc12635a24abf710304c06a91dbf3709cba8fd4.tar.gz
rust-2bc12635a24abf710304c06a91dbf3709cba8fd4.zip
remove vecs_implicitly_copyable from libstd/libcore
Diffstat (limited to 'src/libstd/timer.rs')
-rw-r--r--src/libstd/timer.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index 0d15bbb54d3..234982a12bc 100644
--- a/src/libstd/timer.rs
+++ b/src/libstd/timer.rs
@@ -175,9 +175,9 @@ extern fn delayed_send_close_cb(handle: *uv::ll::uv_timer_t) {
 
 #[cfg(test)]
 mod test {
-
     use timer::*;
     use uv;
+    use core::cell::Cell;
     use core::rand::RngUtil;
     use core::pipes::{stream, SharedChan};
 
@@ -277,11 +277,11 @@ mod test {
 
         for old_iter::repeat(times as uint) {
             let mut rng = rand::rng();
-            let expected = rng.gen_str(16u);
+            let expected = Cell(rng.gen_str(16u));
             let (test_po, test_ch) = stream::<~str>();
             let hl_loop_clone = hl_loop.clone();
             do task::spawn() {
-                delayed_send(&hl_loop_clone, 50u, &test_ch, expected);
+                delayed_send(&hl_loop_clone, 50u, &test_ch, expected.take());
             };
 
             match recv_timeout(&hl_loop, 1u, &test_po) {