diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-07-01 06:30:17 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-01 06:30:17 -0700 |
commit | e32363c788e184ed2c2df22201b864096c053fa9 (patch) | |
tree | b0bb8526ce6c45a6ec0d2c341dc3ce8ac89e67bf /src/test | |
parent | 713816102b1cb61f45d2306f38e3d95dfdcc8ae1 (diff) | |
download | milf-rs-e32363c788e184ed2c2df22201b864096c053fa9.tar.gz milf-rs-e32363c788e184ed2c2df22201b864096c053fa9.zip |
Fix tests on master
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/valid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs index 335e908..bc46d1a 100644 --- a/src/test/valid.rs +++ b/src/test/valid.rs @@ -8,7 +8,7 @@ use {Parser, Value, Table, String, Integer, Float, Boolean, Datetime, Array}; fn to_json(toml: Value) -> json::Json { fn doit(s: &str, json: json::Json) -> json::Json { - let mut map = box TreeMap::new(); + let mut map = TreeMap::new(); map.insert("type".to_string(), json::String(s.to_string())); map.insert("value".to_string(), json); json::Object(map) @@ -36,7 +36,7 @@ fn to_json(toml: Value) -> json::Json { let json = json::List(arr.move_iter().map(to_json).collect()); if is_table {json} else {doit("array", json)} } - Table(table) => json::Object(box table.move_iter().map(|(k, v)| { + Table(table) => json::Object(table.move_iter().map(|(k, v)| { (k, to_json(v)) }).collect()), } |