File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed 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