diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-29 21:49:42 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-29 21:49:44 +0100 |
commit | 84a1960489c9c92ef898eb7617061035df39ac42 (patch) | |
tree | 599bee592dbffdb5e1365e4aa9bf4f77f16d4611 /askama_derive | |
parent | cb660c7b8d398800d91d7c4c6c3276959fd14e71 (diff) | |
download | askama-84a1960489c9c92ef898eb7617061035df39ac42.tar.gz askama-84a1960489c9c92ef898eb7617061035df39ac42.tar.bz2 askama-84a1960489c9c92ef898eb7617061035df39ac42.zip |
Move input module into askama_shared
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/generator.rs | 2 | ||||
-rw-r--r-- | askama_derive/src/lib.rs | 3 | ||||
-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; |