diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-26 21:40:26 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-26 21:40:26 +0200 |
commit | 8882ec000ddbf37465afbdb337222f113bceffcd (patch) | |
tree | 7d40cbf229aeb7932b00acc3bb8a348536554829 /askama_shared | |
parent | 531e77eb36ee728630631da303af4761629980a3 (diff) | |
download | askama-8882ec000ddbf37465afbdb337222f113bceffcd.tar.gz askama-8882ec000ddbf37465afbdb337222f113bceffcd.tar.bz2 askama-8882ec000ddbf37465afbdb337222f113bceffcd.zip |
Rename parse() method to macro_map()
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/lib.rs | 2 |
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| { |