From 68572d35cef7e1c9813e032f4c278d7eaa57a07a Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 10 Aug 2017 12:52:48 +0200 Subject: Add note to template_dir() about being duplicated --- askama_derive/src/path.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'askama_derive/src/path.rs') diff --git a/askama_derive/src/path.rs b/askama_derive/src/path.rs index 03ab20d..a78daf8 100644 --- a/askama_derive/src/path.rs +++ b/askama_derive/src/path.rs @@ -46,6 +46,7 @@ pub fn find_template_from_path<'a>(path: &str, start_at: Option<&str>) -> PathBu } } +// Duplicated in askama fn template_dir() -> PathBuf { let mut path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); path.push("templates"); -- cgit