aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-18 09:50:04 -0400
committerAlex Crichton <alex@alexcrichton.com>2014-09-18 09:50:04 -0400
commit1ca52c5ea44d37354af024f1c790c2f042504c5b (patch)
treef3869549d757a315cad4699f6663f7380f43ad64 /src
parent5806d17e78c62df1e6c9fcfa13058729cc868332 (diff)
parentd2208b1d2b1715ada9377c4d172a50fa8785bff5 (diff)
downloadmilf-rs-1ca52c5ea44d37354af024f1c790c2f042504c5b.tar.gz
milf-rs-1ca52c5ea44d37354af024f1c790c2f042504c5b.zip
Merge pull request #17 from jroesch/into-iter
Update uses of move_iter() to into_iter()
Diffstat (limited to 'src')
-rw-r--r--src/test/valid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs
index 1bcfeb2..76ca9fb 100644
--- a/src/test/valid.rs
+++ b/src/test/valid.rs
@@ -33,10 +33,10 @@ fn to_json(toml: Value) -> json::Json {
Some(&Table(..)) => true,
_ => false,
};
- let json = json::List(arr.move_iter().map(to_json).collect());
+ let json = json::List(arr.into_iter().map(to_json).collect());
if is_table {json} else {doit("array", json)}
}
- Table(table) => json::Object(table.move_iter().map(|(k, v)| {
+ Table(table) => json::Object(table.into_iter().map(|(k, v)| {
(k, to_json(v))
}).collect()),
}