1
Fork 0

Replace most ~exprs with 'box'. #11779

This commit is contained in:
Brian Anderson 2014-04-25 01:08:02 -07:00
parent a67307e2a5
commit a5be12ce7e
117 changed files with 630 additions and 623 deletions

View file

@ -417,7 +417,7 @@ impl Drop for Process {
drop(self.stdin.take());
drop(self.stdout.take());
drop(self.stderr.take());
drop(mem::replace(&mut self.extra_io, ~[]));
drop(mem::replace(&mut self.extra_io, box []));
self.wait();
}
@ -804,7 +804,7 @@ mod tests {
})
iotest!(fn test_add_to_env() {
let new_env = ~[("RUN_TEST_NEW_ENV".to_owned(), "123".to_owned())];
let new_env = box [("RUN_TEST_NEW_ENV".to_owned(), "123".to_owned())];
let mut prog = run_env(Some(new_env));
let result = prog.wait_with_output();