File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ fn make_tests(config: config) -> ~[test::TestDesc] {
145
145
tests. push ( make_test ( config, file) )
146
146
}
147
147
}
148
- return tests;
148
+ move tests
149
149
}
150
150
151
151
fn is_test ( config : config , testfile : & Path ) -> bool {
Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ fn run(lib_path: ~str,
60
60
writeclose ( pipe_in. out , input) ;
61
61
let p = pipes:: PortSet ( ) ;
62
62
let ch = p. chan ( ) ;
63
- do task:: spawn_sched ( task:: SingleThreaded ) {
63
+ do task:: spawn_sched ( task:: SingleThreaded ) | move ch| {
64
64
let errput = readclose ( pipe_err. in ) ;
65
65
ch. send ( ( 2 , errput) ) ;
66
66
}
67
67
let ch = p. chan ( ) ;
68
- do task:: spawn_sched ( task:: SingleThreaded ) {
68
+ do task:: spawn_sched ( task:: SingleThreaded ) | move ch| {
69
69
let output = readclose ( pipe_out. in ) ;
70
70
ch. send ( ( 1 , output) ) ;
71
71
}
You can’t perform that action at this time.
0 commit comments