diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-04-16 23:45:29 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-04-18 14:07:35 -0700 |
| commit | decd3901d5d63013a98ecc481c441f3f793b5207 (patch) | |
| tree | 37327a47db463003bcb8c5342fcecb04d56d1c64 /src/libcore/task | |
| parent | bc60d84507ba4d492889c9b702318346b5784e5c (diff) | |
| download | rust-decd3901d5d63013a98ecc481c441f3f793b5207.tar.gz rust-decd3901d5d63013a98ecc481c441f3f793b5207.zip | |
core::comm: Modernize constructors to use `new`
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 2975f3d5e46..55546514e4f 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -657,7 +657,7 @@ fn test_cant_dup_task_builder() { #[test] #[ignore(cfg(windows))] fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port let (po, ch) = stream(); - let ch = SharedChan(ch); + let ch = SharedChan::new(ch); do spawn_unlinked { let ch = ch.clone(); do spawn_unlinked { @@ -881,7 +881,7 @@ fn test_spawn_sched_no_threads() { #[test] fn test_spawn_sched() { let (po, ch) = stream::<()>(); - let ch = SharedChan(ch); + let ch = SharedChan::new(ch); fn f(i: int, ch: SharedChan<()>) { let parent_sched_id = unsafe { rt::rust_get_sched_id() }; |
