aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-20 22:35:14 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-20 22:35:30 -0800
commit95c6161dcec9cdaada7e1507c6e536eeb7623ed4 (patch)
tree92d2a790b4e5963011c980b15d5d8f2ef4d866d4 /src/test
parent1346affca989975890b3a0d906b54c10c814e156 (diff)
downloadmilf-rs-95c6161dcec9cdaada7e1507c6e536eeb7623ed4.tar.gz
milf-rs-95c6161dcec9cdaada7e1507c6e536eeb7623ed4.zip
Update to rust master
Diffstat (limited to 'src/test')
-rw-r--r--src/test/valid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs
index e38cf5b..205e9e6 100644
--- a/src/test/valid.rs
+++ b/src/test/valid.rs
@@ -1,7 +1,7 @@
extern crate serialize;
use std::num::strconv;
-use std::collections::TreeMap;
+use std::collections::BTreeMap;
use self::serialize::json::{mod, Json};
use {Parser, Value};
@@ -9,7 +9,7 @@ use Value::{Table, Integer, Float, Boolean, Datetime, Array};
fn to_json(toml: Value) -> Json {
fn doit(s: &str, json: Json) -> Json {
- let mut map = TreeMap::new();
+ let mut map = BTreeMap::new();
map.insert("type".to_string(), Json::String(s.to_string()));
map.insert("value".to_string(), json);
Json::Object(map)