aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-26 21:40:26 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-26 21:40:26 +0200
commit8882ec000ddbf37465afbdb337222f113bceffcd (patch)
tree7d40cbf229aeb7932b00acc3bb8a348536554829 /askama_shared/src
parent531e77eb36ee728630631da303af4761629980a3 (diff)
downloadaskama-8882ec000ddbf37465afbdb337222f113bceffcd.tar.gz
askama-8882ec000ddbf37465afbdb337222f113bceffcd.tar.bz2
askama-8882ec000ddbf37465afbdb337222f113bceffcd.zip
Rename parse() method to macro_map()
Diffstat (limited to '')
-rw-r--r--askama_shared/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 2feff75..4e57a82 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -68,7 +68,7 @@ impl <'a> Imports<'a> {
Imports { sources }
}
- pub fn parse(&'a self) -> HashMap<&'a str, Macro<'a>> {
+ pub fn macro_map(&'a self) -> HashMap<&'a str, Macro<'a>> {
self.sources.iter()
.flat_map(|s| parser::parse(s.as_ref()))
.filter_map(|n| {