File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
- refs/heads/try: c3f15c098294ab7849882fddc8fe066c4536698d
5
+ refs/heads/try: 677792c6b1cd0747491e73a497127393c435a118
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
Original file line number Diff line number Diff line change 5
5
* `interact` function you can execute code in a uv callback.
6
6
*/
7
7
8
+ #[ forbid( deprecated_mode) ] ;
9
+ #[ forbid( deprecated_pattern) ] ;
10
+
8
11
export IoTask ;
9
12
export spawn_iotask;
10
13
export interact;
@@ -25,7 +28,7 @@ enum IoTask {
25
28
} )
26
29
}
27
30
28
- fn spawn_iotask ( - task : task:: TaskBuilder ) -> IoTask {
31
+ fn spawn_iotask ( + task : task:: TaskBuilder ) -> IoTask {
29
32
30
33
do listen |iotask_ch| {
31
34
@@ -63,7 +66,7 @@ fn spawn_iotask(-task: task::TaskBuilder) -> IoTask {
63
66
* via ports/chans.
64
67
*/
65
68
unsafe fn interact ( iotask : IoTask ,
66
- - cb : fn ~( * c_void ) ) {
69
+ + cb : fn ~( * c_void ) ) {
67
70
send_msg ( iotask, Interaction ( move cb) ) ;
68
71
}
69
72
@@ -128,7 +131,7 @@ type IoTaskLoopData = {
128
131
} ;
129
132
130
133
fn send_msg ( iotask : IoTask ,
131
- - msg : IoTaskMsg ) unsafe {
134
+ + msg : IoTaskMsg ) unsafe {
132
135
iotask. op_chan . send ( move msg) ;
133
136
ll:: async_send ( iotask. async_handle ) ;
134
137
}
You can’t perform that action at this time.
0 commit comments