Skip to content

Commit a6d64df

Browse files
committed
Correct illegal pattern in windows-only code
1 parent 979d3a5 commit a6d64df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,8 @@ fn with_envp<T>(env: Option<&[(~str, ~str)]>, cb: &fn(*mut c_void) -> T) -> T {
744744
match env {
745745
Some(es) => {
746746
let mut blk = ~[];
747-
for es.iter().advance |&(k, v)| {
748-
let kv = fmt!("%s=%s", k, v);
747+
for es.iter().advance |pair| {
748+
let kv = fmt!("%s=%s", pair.first(), pair.second());
749749
blk.push_all(kv.as_bytes_with_null_consume());
750750
}
751751
blk.push(0);

0 commit comments

Comments
 (0)