aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-22 11:23:35 -0600
committerAlex Crichton <alex@alexcrichton.com>2014-11-22 11:23:35 -0600
commit1e35b001094b20d2452adff305e418591d4000fb (patch)
treec724ca5e48ae25b2fb7f5f853262c21f3e4de562 /src/test
parent3dfa68dc449c8bb8716fa77998b1360dc216f2a2 (diff)
parentc7872d82fcea1fc1f22f9b462a6a7af01f881221 (diff)
downloadmilf-rs-1e35b001094b20d2452adff305e418591d4000fb.tar.gz
milf-rs-1e35b001094b20d2452adff305e418591d4000fb.zip
Merge pull request #33 from markuskobler/master
Fixing build errors with latest rust
Diffstat (limited to 'src/test')
-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)| {