aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Kobler <markus@distinctive.co>2014-11-22 13:28:41 +0000
committerMarkus Kobler <markus@distinctive.co>2014-11-22 13:28:41 +0000
commitc7872d82fcea1fc1f22f9b462a6a7af01f881221 (patch)
treec724ca5e48ae25b2fb7f5f853262c21f3e4de562 /src
parentd0519edd2130198e3e3bccf2296852f0302aae81 (diff)
downloadmilf-rs-c7872d82fcea1fc1f22f9b462a6a7af01f881221.tar.gz
milf-rs-c7872d82fcea1fc1f22f9b462a6a7af01f881221.zip
Fixing test json::List -> json::Array
Diffstat (limited to 'src')
-rw-r--r--src/test/valid.rs2
1 files changed, 1 insertions, 1 deletions
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)| {