Replace TreeMap/TreeSet with BTreeMap/BTreeSet in serde

Follow rust std changes:
https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
This commit is contained in:
Thomas Bahn
2014-12-20 14:40:01 +01:00
parent aad0854beb
commit 19bda6a90d
4 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::collections::TreeMap;
use std::collections::BTreeMap;
use std::str::StrAllocating;
use json::value::{ToJson, Value};
@@ -44,12 +44,12 @@ impl ArrayBuilder {
}
pub struct ObjectBuilder {
object: TreeMap<String, Value>,
object: BTreeMap<String, Value>,
}
impl ObjectBuilder {
pub fn new() -> ObjectBuilder {
ObjectBuilder { object: TreeMap::new() }
ObjectBuilder { object: BTreeMap::new() }
}
pub fn unwrap(self) -> Value {