aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-11-21 20:53:57 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-11-21 20:57:56 +0100
commit83cc6e0ca3e9878c47593ab737e6bf106ea062db (patch)
treee3ec5ac6d25c5835792d7fdc094253ab2fade059 /askama_shared/src/lib.rs
parent958680aee0fc2d58200382223937e8123fae7459 (diff)
downloadaskama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.tar.gz
askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.tar.bz2
askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.zip
Apply suggestions from rustfmt to improve style
Diffstat (limited to '')
-rw-r--r--askama_shared/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 88439dc..0f46b91 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -21,7 +21,7 @@ mod input;
mod parser;
use input::Print;
-use parser::{Node, Macro};
+use parser::{Macro, Node};
use std::borrow::Cow;
use std::collections::HashMap;
@@ -50,10 +50,10 @@ pub fn build_template(ast: &syn::DeriveInput) -> String {
pub struct Imports<'a> {
- pub sources: HashMap<&'a str, Cow<'a, str>>
+ pub sources: HashMap<&'a str, Cow<'a, str>>,
}
-impl <'a> Imports<'a> {
+impl<'a> Imports<'a> {
pub fn new(parent_nodes: &'a [Node], parent_path: &'a Path) -> Imports<'a> {
let sources = parent_nodes.iter().filter_map(|n| {
match *n {