diff options
Diffstat (limited to 'src/pre_process.rs')
-rw-r--r-- | src/pre_process.rs | 4 |
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 | ||
37 | pub fn split_sections(d: &str, s: &mut Vec<Section>) { | 37 | pub 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 | ||