summaryrefslogtreecommitdiffstats
path: root/src/property.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/property.rs
parent8704447a9d22ab2d1d66c6b56e4f69e8caede007 (diff)
Switch to BTreeMap (#17)
Diffstat (limited to 'src/property.rs')
-rw-r--r--src/property.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/property.rs b/src/property.rs
index b5e567d..6fd625a 100644
--- a/src/property.rs
+++ b/src/property.rs
@@ -1,4 +1,4 @@
-use std::collections::HashMap;
+use std::collections::BTreeMap;
#[derive(Clone, Debug)]
pub struct Property {
@@ -6,7 +6,7 @@ pub struct Property {
pub name: String,
/// Parameters.
- pub params: HashMap<String, String>,
+ pub params: BTreeMap<String, String>,
/// Value as unparsed string.
pub raw_value: String,
@@ -24,7 +24,7 @@ impl Property {
{
Property {
name: name.into(),
- params: HashMap::new(),
+ params: BTreeMap::new(),
raw_value: escape_chars(value.as_ref()),
prop_group: None
}