aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Roesch <roeschinc@gmail.com>2014-09-17 21:50:01 -0700
committerJared Roesch <roeschinc@gmail.com>2014-09-17 21:51:25 -0700
commitd2208b1d2b1715ada9377c4d172a50fa8785bff5 (patch)
tree9239f7f162abb6b9155e795d09eaf1b0e55fba53
parent5f5bd93203aa4c8e0602eb4def2d73d385cba74c (diff)
downloadmilf-rs-d2208b1d2b1715ada9377c4d172a50fa8785bff5.tar.gz
milf-rs-d2208b1d2b1715ada9377c4d172a50fa8785bff5.zip
Update uses of move_iter() to into_iter()
-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()),
}