about summary refs log tree commit diff
path: root/src/libstd/timer.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-04-16 23:45:29 -0700
committerBrian Anderson <banderson@mozilla.com>2013-04-18 14:07:35 -0700
commitdecd3901d5d63013a98ecc481c441f3f793b5207 (patch)
tree37327a47db463003bcb8c5342fcecb04d56d1c64 /src/libstd/timer.rs
parentbc60d84507ba4d492889c9b702318346b5784e5c (diff)
downloadrust-decd3901d5d63013a98ecc481c441f3f793b5207.tar.gz
rust-decd3901d5d63013a98ecc481c441f3f793b5207.zip
core::comm: Modernize constructors to use `new`
Diffstat (limited to 'src/libstd/timer.rs')
-rw-r--r--src/libstd/timer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index c229e72ae5d..e862fe6077c 100644
--- a/src/libstd/timer.rs
+++ b/src/libstd/timer.rs
@@ -43,7 +43,7 @@ pub fn delayed_send<T:Owned>(iotask: &IoTask,
                               ch: &Chan<T>,
                               val: T) {
     let (timer_done_po, timer_done_ch) = stream::<()>();
-    let timer_done_ch = SharedChan(timer_done_ch);
+    let timer_done_ch = SharedChan::new(timer_done_ch);
     let timer = uv::ll::timer_t();
     let timer_ptr = ptr::addr_of(&timer);
     do iotask::interact(iotask) |loop_ptr| {
@@ -199,7 +199,7 @@ mod test {
     #[test]
     fn test_gl_timer_sleep_stress2() {
         let (po, ch) = stream();
-        let ch = SharedChan(ch);
+        let ch = SharedChan::new(ch);
         let hl_loop = &uv::global_loop::get();
 
         let repeat = 20u;