aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()),
}