diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-03 12:21:48 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-03 14:05:51 -0700 |
| commit | f33539e446d6f41d4a3296ed50a8f968e7950483 (patch) | |
| tree | d2063ef25015d1c906f4f15cd2d46ab89c6a1db2 /src/libstd/timer.rs | |
| parent | 654b4d6987223752155b58804255a373d3410a96 (diff) | |
| download | rust-f33539e446d6f41d4a3296ed50a8f968e7950483.tar.gz rust-f33539e446d6f41d4a3296ed50a8f968e7950483.zip | |
Remove uses of + mode from libstd
More or less the same as my analogous commit for libcore. Had to remove the forbid(deprecated_modes) pragma from some files -- will restore it after the snapshot.
Diffstat (limited to 'src/libstd/timer.rs')
| -rw-r--r-- | src/libstd/timer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs index 8aaf7d3fd87..2aca87b942e 100644 --- a/src/libstd/timer.rs +++ b/src/libstd/timer.rs @@ -1,6 +1,6 @@ //! Utilities that leverage libuv's `uv_timer_*` API -#[forbid(deprecated_mode)]; +// tjc: forbid deprecated modes again after snap use uv = uv; use uv::iotask; @@ -24,7 +24,7 @@ use comm = core::comm; * * val - a value of type T to send over the provided `ch` */ pub fn delayed_send<T: Copy Send>(iotask: IoTask, - msecs: uint, ch: comm::Chan<T>, +val: T) { + msecs: uint, ch: comm::Chan<T>, val: T) { unsafe { let timer_done_po = core::comm::Port::<()>(); let timer_done_ch = core::comm::Chan(timer_done_po); |
