aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-21 12:19:54 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-21 12:19:54 +0200
commit31b90ccc657a5468de6bdffea8d309f502cd0d07 (patch)
tree5b5689f15dfb2cdcc27eca10ef39212dd18db4f2 /askama_derive/src/lib.rs
parentf05a924c49afb537b624cfe3cbef3a95b13759a2 (diff)
downloadaskama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.gz
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.bz2
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.zip
Fix formatting with cargo fmt
Diffstat (limited to 'askama_derive/src/lib.rs')
-rw-r--r--askama_derive/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs
index dcae4d3..215866a 100644
--- a/askama_derive/src/lib.rs
+++ b/askama_derive/src/lib.rs
@@ -7,8 +7,8 @@ extern crate proc_macro2;
extern crate quote;
extern crate syn;
-mod input;
mod generator;
+mod input;
mod parser;
use input::{Print, Source};
@@ -36,7 +36,7 @@ fn build_template(ast: &syn::DeriveInput) -> String {
let input = input::TemplateInput::new(ast);
let source = match input.source {
Source::Source(ref s) => s.clone(),
- Source::Path(_) => path::get_template_source(&input.path)
+ Source::Path(_) => path::get_template_source(&input.path),
};
let nodes = parser::parse(&source);