mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
reorder args to the various vec, option fns so blk comes last
This commit is contained in:
@@ -122,7 +122,7 @@ fn spawn_process(prog: str, args: [str], in_fd: fd_t,
|
||||
// Note: we have to hold on to these vector references while we hold a
|
||||
// pointer to their buffers
|
||||
let prog = prog;
|
||||
let args = vec::map({|arg| @arg }, args);
|
||||
let args = vec::map(args, {|arg| @arg });
|
||||
let argv = arg_vec(prog, args);
|
||||
let pid =
|
||||
rustrt::rust_run_program(vec::unsafe::to_ptr(argv), in_fd, out_fd,
|
||||
|
||||
Reference in New Issue
Block a user