diff options
| author | Scott Lawrence <bytbox@gmail.com> | 2014-01-26 22:42:26 -0500 |
|---|---|---|
| committer | Scott Lawrence <bytbox@gmail.com> | 2014-01-29 09:15:41 -0500 |
| commit | 25e7e7f8076d879f824f013faa6f7470e69c818b (patch) | |
| tree | 9acb92473ae0a0f1463901fe97e222e07da55b6b /src/libstd/io/timer.rs | |
| parent | af218d68e4b4916440ef2b4fc076a7bd8dead892 (diff) | |
| download | rust-25e7e7f8076d879f824f013faa6f7470e69c818b.tar.gz rust-25e7e7f8076d879f824f013faa6f7470e69c818b.zip | |
Removing do keyword from libstd and librustc
Diffstat (limited to 'src/libstd/io/timer.rs')
| -rw-r--r-- | src/libstd/io/timer.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/io/timer.rs b/src/libstd/io/timer.rs index 4bf89a1d559..24eaf6adf3f 100644 --- a/src/libstd/io/timer.rs +++ b/src/libstd/io/timer.rs @@ -204,9 +204,9 @@ mod test { let mut timer = Timer::new().unwrap(); let timer_port = timer.periodic(1000); - do spawn { + spawn(proc() { timer_port.recv_opt(); - } + }); // when we drop the TimerWatcher we're going to destroy the channel, // which must wake up the task on the other end @@ -217,9 +217,9 @@ mod test { let mut timer = Timer::new().unwrap(); let timer_port = timer.periodic(1000); - do spawn { + spawn(proc() { timer_port.recv_opt(); - } + }); timer.oneshot(1); }) @@ -229,9 +229,9 @@ mod test { let mut timer = Timer::new().unwrap(); let timer_port = timer.periodic(1000); - do spawn { + spawn(proc() { timer_port.recv_opt(); - } + }); timer.sleep(1); }) |
