From d2208b1d2b1715ada9377c4d172a50fa8785bff5 Mon Sep 17 00:00:00 2001 From: Jared Roesch Date: Wed, 17 Sep 2014 21:50:01 -0700 Subject: Update uses of move_iter() to into_iter() --- src/test/valid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') 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()), } -- cgit v1.2.3