diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-03-14 18:28:50 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-03-14 20:46:36 -0400 |
| commit | e702d2019131a51630ee5f46ccff4a3bd31e178a (patch) | |
| tree | b742f67c1705289da21297ad89869d3523997494 /src/libstd | |
| parent | 6b35875dca67e5dd1e8f986c8528ffbf973fdcbb (diff) | |
| download | rust-e702d2019131a51630ee5f46ccff4a3bd31e178a.tar.gz rust-e702d2019131a51630ee5f46ccff4a3bd31e178a.zip | |
allow immut vars to be moved. enforce mut vars after stage0 in std.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/uv.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/uv.rs b/src/libstd/uv.rs index fd54f7d9291..026a9edb6a8 100644 --- a/src/libstd/uv.rs +++ b/src/libstd/uv.rs @@ -339,7 +339,7 @@ fn async_init ( lp: uv_loop, async_cb: fn~(uv_handle), after_cb: fn~(uv_handle)) { - let mut msg = msg_async_init(async_cb, after_cb); + let msg = msg_async_init(async_cb, after_cb); let loop_chan = get_loop_chan_from_uv_loop(lp); comm::send(loop_chan, msg); } @@ -363,7 +363,7 @@ fn close(h: uv_handle, cb: fn~()) { } fn timer_init(lp: uv_loop, after_cb: fn~(uv_handle)) { - let mut msg = msg_timer_init(after_cb); + let msg = msg_timer_init(after_cb); let loop_chan = get_loop_chan_from_uv_loop(lp); comm::send(loop_chan, msg); } @@ -372,7 +372,7 @@ fn timer_start(the_timer: uv_handle, timeout: u32, repeat:u32, timer_cb: fn~(uv_handle)) { alt the_timer { uv_timer(id, lp) { - let mut msg = msg_timer_start(id, timeout, repeat, timer_cb); + let msg = msg_timer_start(id, timeout, repeat, timer_cb); let loop_chan = get_loop_chan_from_uv_loop(lp); comm::send(loop_chan, msg); } @@ -387,7 +387,7 @@ fn timer_stop(the_timer: uv_handle, after_cb: fn~(uv_handle)) { alt the_timer { uv_timer(id, lp) { let loop_chan = get_loop_chan_from_uv_loop(lp); - let mut msg = msg_timer_stop(id, after_cb); + let msg = msg_timer_stop(id, after_cb); comm::send(loop_chan, msg); } _ { |
