aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_shared/src/filters/mod.rs2
-rw-r--r--askama_shared/src/generator.rs2
-rw-r--r--askama_shared/src/input.rs1
-rw-r--r--askama_shared/src/lib.rs2
4 files changed, 1 insertions, 6 deletions
diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs
index bcc70be..e790a7f 100644
--- a/askama_shared/src/filters/mod.rs
+++ b/askama_shared/src/filters/mod.rs
@@ -348,7 +348,7 @@ mod tests {
fn test_trim() {
assert_eq!(trim(&" Hello\tworld\t").unwrap(), "Hello\tworld");
}
-
+
#[test]
fn test_truncate() {
assert_eq!(truncate(&"hello", &2).unwrap(), "he...");
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index dd33e12..59df687 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -14,8 +14,6 @@ use std::collections::{HashMap, HashSet};
use std::path::PathBuf;
use std::{cmp, hash, mem, str};
-use syn;
-
pub fn generate<S: std::hash::BuildHasher>(
input: &TemplateInput,
contexts: &HashMap<&PathBuf, Context, S>,
diff --git a/askama_shared/src/input.rs b/askama_shared/src/input.rs
index 53718f0..f9d10a4 100644
--- a/askama_shared/src/input.rs
+++ b/askama_shared/src/input.rs
@@ -3,7 +3,6 @@ use crate::{Config, Syntax};
use std::path::PathBuf;
use quote::ToTokens;
-use syn;
pub struct TemplateInput<'a> {
pub ast: &'a syn::DeriveInput,
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index 0e8664d..e405439 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -7,8 +7,6 @@ use std::path::{Path, PathBuf};
#[cfg(feature = "serde")]
use serde::Deserialize;
-#[cfg(feature = "config")]
-use toml;
pub use askama_escape::MarkupDisplay;