aboutsummaryrefslogtreecommitdiff
path: root/src/pre_process.rs
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-09-30 23:16:19 (UTC)
committerjan <jan@ruken.pw>2016-09-30 23:16:19 (UTC)
commita6b37fa5e1bd505adfae4888896be2a3aa49ec3a (patch)
tree0a381e0533489a78758b1516680e274f5fd82216 /src/pre_process.rs
parent361ea3a80a60bc6595a7a624b6cc5d71ddc8f6fc (diff)
parsen von traits und tags, wir koennen den configkram eigentlich wieder komplett entfernen. klappt so nicht wirklich.
Diffstat (limited to 'src/pre_process.rs')
-rw-r--r--src/pre_process.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pre_process.rs b/src/pre_process.rs
index a4d6c14..273562d 100644
--- a/src/pre_process.rs
+++ b/src/pre_process.rs
@@ -34,8 +34,8 @@ impl Section {
34 } 34 }
35} 35}
36 36
37pub fn split_sections(d: &str, s: &mut Vec<Section>) { 37pub fn split_sections(d: &str, s: &mut HashMap<String, Section>) {
38 for section in s { 38 for (_, section) in s {
39 for m in section.re.captures_iter(d) { 39 for m in section.re.captures_iter(d) {
40 assert!(m.len() >= section.keys.len() + 1); 40 assert!(m.len() >= section.keys.len() + 1);
41 41