fix windows build

This commit is contained in:
Daniel Micay 2013-06-11 14:54:05 -04:00
parent 004816f4c6
commit bbe3d4a9dc
1 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ fn spawn_process_os(prog: &str, args: &[~str],
CloseHandle(si.hStdOutput);
CloseHandle(si.hStdError);
for create_err.each |msg| {
for create_err.iter().advance |msg| {
fail!("failure in CreateProcess: %s", *msg);
}
@ -589,7 +589,7 @@ pub fn make_command_line(prog: &str, args: &[~str]) -> ~str {
return cmd;
fn append_arg(cmd: &mut ~str, arg: &str) {
let quote = arg.iter().any(|c| c == ' ' || c == '\t');
let quote = arg.iter().any_(|c| c == ' ' || c == '\t');
if quote {
cmd.push_char('"');
}