about summary refs log tree commit diff
path: root/src/libstd/select.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/select.rs')
-rw-r--r--src/libstd/select.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/select.rs b/src/libstd/select.rs
index b619085e201..9b83c493065 100644
--- a/src/libstd/select.rs
+++ b/src/libstd/select.rs
@@ -211,7 +211,7 @@ mod test {
         do run_in_uv_task {
             let (ports, _) = unzip(range(0u, 10).map(|_| stream::<int>()));
             let (port, chan) = stream();
-            do 10.times { chan.send(31337); }
+            10.times(|| { chan.send(31337); });
             let mut ports = ports;
             let mut port = Some(port);
             let order = [5u,0,4,3,2,6,9,8,7,1];
@@ -276,7 +276,7 @@ mod test {
 
             do run_in_uv_task {
                 // A bit of stress, since ordinarily this is just smoke and mirrors.
-                do 4.times {
+                4.times(|| {
                     let send_on_chans = send_on_chans.clone();
                     do task::spawn {
                         let mut ports = ~[];
@@ -294,7 +294,7 @@ mod test {
                         // nondeterministic result, but should succeed
                         select(ports);
                     }
-                }
+                })
             }
         }
     }