summaryrefslogtreecommitdiffstats
path: root/src/component.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-28 02:16:08 +0200
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2017-10-28 02:16:08 +0200
commite0b102cb4ece8748e686ea633ccb654defafe6ae (patch)
tree3a70461b677d26ae661bb20a12cae90ab30fad74 /src/component.rs
parent8704447a9d22ab2d1d66c6b56e4f69e8caede007 (diff)
Switch to BTreeMap (#17)
Diffstat (limited to 'src/component.rs')
-rw-r--r--src/component.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/component.rs b/src/component.rs
index 4c46067..2c96a4a 100644
--- a/src/component.rs
+++ b/src/component.rs
@@ -1,5 +1,5 @@
use std::str::FromStr;
-use std::collections::HashMap;
+use std::collections::BTreeMap;
use property::Property;
use parser::Parser;
@@ -11,7 +11,7 @@ pub struct Component {
pub name: String,
/// The component's properties.
- pub props: HashMap<String, Vec<Property>>,
+ pub props: BTreeMap<String, Vec<Property>>,
/// The component's child- or sub-components.
pub subcomponents: Vec<Component>
@@ -21,7 +21,7 @@ impl Component {
pub fn new<N: Into<String>>(name: N) -> Component {
Component {
name: name.into(),
- props: HashMap::new(),
+ props: BTreeMap::new(),
subcomponents: vec![]
}
}