diff options
author | Markus Kobler <markus@distinctive.co> | 2014-11-22 13:28:41 +0000 |
---|---|---|
committer | Markus Kobler <markus@distinctive.co> | 2014-11-22 13:28:41 +0000 |
commit | c7872d82fcea1fc1f22f9b462a6a7af01f881221 (patch) | |
tree | c724ca5e48ae25b2fb7f5f853262c21f3e4de562 | |
parent | d0519edd2130198e3e3bccf2296852f0302aae81 (diff) | |
download | milf-rs-c7872d82fcea1fc1f22f9b462a6a7af01f881221.tar.gz milf-rs-c7872d82fcea1fc1f22f9b462a6a7af01f881221.zip |
Fixing test json::List -> json::Array
-rw-r--r-- | src/test/valid.rs | 2 |
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)| { |