From f9f4f57221e4488f3ecf26752e6c53d60167a5af Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 11 Jul 2018 22:38:07 +0100 Subject: Move get_template_source() into askama_derive --- askama_derive/src/generator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 7bc7b41..15a2e61 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -1,7 +1,7 @@ -use super::Context; +use super::{get_template_source, Context}; use input::TemplateInput; use parser::{self, Cond, Expr, MatchParameter, MatchVariant, Node, Target, When, WS}; -use shared::{filters, path}; +use shared::filters; use proc_macro2::Span; @@ -494,7 +494,7 @@ impl<'a> Generator<'a> { let path = self.input .config .find_template(path, Some(&self.input.path)); - let src = path::get_template_source(&path); + let src = get_template_source(&path); let nodes = parser::parse(&src); let nested = { let mut gen = self.child(); -- cgit