Skip to content

Commit b260844

Browse files
committed
Remove deprecated modes from libstd/timer.rs
1 parent 8ef4551 commit b260844

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libstd/timer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! Utilities that leverage libuv's `uv_timer_*` API
22
3+
#[forbid(deprecated_mode)];
4+
#[forbid(deprecated_pattern)];
5+
36
import uv = uv;
47
import uv::iotask;
58
import iotask::iotask;
@@ -24,7 +27,7 @@ export delayed_send, sleep, recv_timeout;
2427
* * val - a value of type T to send over the provided `ch`
2528
*/
2629
fn delayed_send<T: copy send>(iotask: iotask,
27-
msecs: uint, ch: comm::Chan<T>, val: T) {
30+
msecs: uint, ch: comm::Chan<T>, +val: T) {
2831
unsafe {
2932
let timer_done_po = core::comm::port::<()>();
3033
let timer_done_ch = core::comm::chan(timer_done_po);

0 commit comments

Comments
 (0)