about summary refs log tree commit diff
path: root/src/libextra/timer.rs
diff options
context:
space:
mode:
authorPhilipp Brüschweiler <blei42@gmail.com>2013-06-04 12:03:58 +0200
committerPhilipp Brüschweiler <blei42@gmail.com>2013-06-04 12:03:58 +0200
commit34ee63e93bd763326e676bd634f6f17a8f77791d (patch)
tree844bf025d2763daf4913cd7ae965803c20e0e2a3 /src/libextra/timer.rs
parent133d45171564c8b7de14523c9f3aa87140b9f043 (diff)
downloadrust-34ee63e93bd763326e676bd634f6f17a8f77791d.tar.gz
rust-34ee63e93bd763326e676bd634f6f17a8f77791d.zip
std::cell: Modernize constructors
Part of #3853
Diffstat (limited to 'src/libextra/timer.rs')
-rw-r--r--src/libextra/timer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/timer.rs b/src/libextra/timer.rs
index 4f662613b00..f2513366663 100644
--- a/src/libextra/timer.rs
+++ b/src/libextra/timer.rs
@@ -282,7 +282,7 @@ mod test {
 
         for (times as uint).times {
             let mut rng = rand::rng();
-            let expected = Cell(rng.gen_str(16u));
+            let expected = Cell::new(rng.gen_str(16u));
             let (test_po, test_ch) = stream::<~str>();
             let hl_loop_clone = hl_loop.clone();
             do task::spawn() {