aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-10-06 11:50:56 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-11-01 12:52:09 +0100
commit4de28e4584727d4df1cef1c8844db864df128995 (patch)
treed7d06593b4f86b9dbc9911aacb563611fef8d42d /askama_derive
parentc951fcefcafe604136cf0263c6fd51716860b754 (diff)
downloadaskama-4de28e4584727d4df1cef1c8844db864df128995.tar.gz
askama-4de28e4584727d4df1cef1c8844db864df128995.tar.bz2
askama-4de28e4584727d4df1cef1c8844db864df128995.zip
Cleanup imports a bit
Diffstat (limited to 'askama_derive')
-rw-r--r--askama_derive/src/config.rs1
-rw-r--r--askama_derive/src/generator.rs8
-rw-r--r--askama_derive/src/heritage.rs1
3 files changed, 4 insertions, 6 deletions
diff --git a/askama_derive/src/config.rs b/askama_derive/src/config.rs
index b2a13aa..47801cd 100644
--- a/askama_derive/src/config.rs
+++ b/askama_derive/src/config.rs
@@ -6,7 +6,6 @@ use std::{env, fs};
use serde::Deserialize;
use crate::CompileError;
-
use parser::node::Whitespace;
use parser::Syntax;
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs
index 8d120be..929e18c 100644
--- a/askama_derive/src/generator.rs
+++ b/askama_derive/src/generator.rs
@@ -1,3 +1,7 @@
+use std::collections::hash_map::{Entry, HashMap};
+use std::path::{Path, PathBuf};
+use std::{cmp, hash, mem, str};
+
use crate::config::{get_template_source, WhitespaceHandling};
use crate::heritage::{Context, Heritage};
use crate::input::{Source, TemplateInput};
@@ -9,10 +13,6 @@ use parser::node::{
use parser::{Expr, Node, Parsed};
use quote::quote;
-use std::collections::hash_map::{Entry, HashMap};
-use std::path::{Path, PathBuf};
-use std::{cmp, hash, mem, str};
-
pub(crate) struct Generator<'a> {
// The template input state: original struct AST and attributes
input: &'a TemplateInput<'a>,
diff --git a/askama_derive/src/heritage.rs b/askama_derive/src/heritage.rs
index ddf9b99..d75d0a5 100644
--- a/askama_derive/src/heritage.rs
+++ b/askama_derive/src/heritage.rs
@@ -3,7 +3,6 @@ use std::path::{Path, PathBuf};
use crate::config::Config;
use crate::CompileError;
-
use parser::node::{BlockDef, Macro, Match};
use parser::Node;