aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
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)