1
Fork 0

demode the each() method on vec and other iterables.

This commit is contained in:
Niko Matsakis 2012-09-19 16:55:01 -07:00
parent 1c39f1968c
commit cfed923600
110 changed files with 483 additions and 456 deletions

View file

@ -61,7 +61,7 @@ fn to_writer(wr: io::Writer, j: Json) {
wr.write_str(~", ");
}
first = false;
to_writer(wr, item);
to_writer(wr, *item);
};
wr.write_char(']');
}
@ -122,7 +122,7 @@ fn to_writer_pretty(wr: io::Writer, j: Json, indent: uint) {
wr.write_str(spaces(inner_indent));
}
first = false;
to_writer_pretty(wr, item, inner_indent);
to_writer_pretty(wr, *item, inner_indent);
};
// ]
@ -156,7 +156,7 @@ fn to_writer_pretty(wr: io::Writer, j: Json, indent: uint) {
// k: v }
let mut first = true;
for sorted_pairs.each |kv| {
let (key, value) = kv;
let (key, value) = *kv;
if !first {
wr.write_str(~",\n");
wr.write_str(spaces(inner_indent));