From c7872d82fcea1fc1f22f9b462a6a7af01f881221 Mon Sep 17 00:00:00 2001 From: Markus Kobler Date: Sat, 22 Nov 2014 13:28:41 +0000 Subject: Fixing test json::List -> json::Array --- src/test/valid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/test/valid.rs b/src/test/valid.rs index b60277e..09f1622 100644 --- a/src/test/valid.rs +++ b/src/test/valid.rs @@ -34,7 +34,7 @@ fn to_json(toml: Value) -> json::Json { Some(&Table(..)) => true, _ => false, }; - let json = json::List(arr.into_iter().map(to_json).collect()); + let json = json::Array(arr.into_iter().map(to_json).collect()); if is_table {json} else {doit("array", json)} } Table(table) => json::Object(table.into_iter().map(|(k, v)| { -- cgit v1.2.3