aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs2
-rw-r--r--askama_derive/src/lib.rs3
-rw-r--r--askama_shared/src/input.rs (renamed from askama_derive/src/input.rs)2
3 files changed, 3 insertions, 4 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index 4f5b495..a12b1f0 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -1,6 +1,6 @@
use super::{get_template_source, Context, Heritage};
-use crate::input::{Source, TemplateInput};
use askama_shared::filters;
+use askama_shared::input::{Source, TemplateInput};
use askama_shared::parser::{
parse, Cond, Expr, MatchParameter, MatchParameters, MatchVariant, Node, Target, When, WS,
};
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs
index 2189458..0b64057 100644
--- a/askama_derive/src/lib.rs
+++ b/askama_derive/src/lib.rs
@@ -3,9 +3,8 @@ extern crate proc_macro;
extern crate quote;
mod generator;
-mod input;
-use crate::input::{Print, Source, TemplateInput};
+use askama_shared::input::{Print, Source, TemplateInput};
use askama_shared::parser::{parse, Expr, Macro, Node};
use askama_shared::{read_config_file, Config};
use proc_macro::TokenStream;
diff --git a/askama_derive/src/input.rs b/askama_shared/src/input.rs
index 6a54a99..53718f0 100644
--- a/askama_derive/src/input.rs
+++ b/askama_shared/src/input.rs
@@ -1,4 +1,4 @@
-use askama_shared::{Config, Syntax};
+use crate::{Config, Syntax};
use std::path::PathBuf;