Skip to content

Commit d5b2f25

Browse files
committed
---
yaml --- r: 28624 b: refs/heads/try c: 677792c h: refs/heads/master v: v3
1 parent d3ea31e commit d5b2f25

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: c3f15c098294ab7849882fddc8fe066c4536698d
5+
refs/heads/try: 677792c6b1cd0747491e73a497127393c435a118
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/libstd/uv_iotask.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* `interact` function you can execute code in a uv callback.
66
*/
77

8+
#[forbid(deprecated_mode)];
9+
#[forbid(deprecated_pattern)];
10+
811
export IoTask;
912
export spawn_iotask;
1013
export interact;
@@ -25,7 +28,7 @@ enum IoTask {
2528
})
2629
}
2730

28-
fn spawn_iotask(-task: task::TaskBuilder) -> IoTask {
31+
fn spawn_iotask(+task: task::TaskBuilder) -> IoTask {
2932

3033
do listen |iotask_ch| {
3134

@@ -63,7 +66,7 @@ fn spawn_iotask(-task: task::TaskBuilder) -> IoTask {
6366
* via ports/chans.
6467
*/
6568
unsafe fn interact(iotask: IoTask,
66-
-cb: fn~(*c_void)) {
69+
+cb: fn~(*c_void)) {
6770
send_msg(iotask, Interaction(move cb));
6871
}
6972

@@ -128,7 +131,7 @@ type IoTaskLoopData = {
128131
};
129132

130133
fn send_msg(iotask: IoTask,
131-
-msg: IoTaskMsg) unsafe {
134+
+msg: IoTaskMsg) unsafe {
132135
iotask.op_chan.send(move msg);
133136
ll::async_send(iotask.async_handle);
134137
}

0 commit comments

Comments
 (0)