aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
authorLibravatar Juan Aguilar Santillana <mhpoin@gmail.com>2018-12-07 19:47:33 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-12-07 20:18:16 +0100
commitcdafc8d641632ed89fb6435bfebd70d27bfa74ba (patch)
treed3085568d68051e56a7a50526740457bffe9bb42 /testing/tests
parent93136a66edcddab7c7800ad487c29d2cb57b713b (diff)
downloadaskama-cdafc8d641632ed89fb6435bfebd70d27bfa74ba.tar.gz
askama-cdafc8d641632ed89fb6435bfebd70d27bfa74ba.tar.bz2
askama-cdafc8d641632ed89fb6435bfebd70d27bfa74ba.zip
Fix cargo fmt
Diffstat (limited to '')
-rw-r--r--testing/tests/filters.rs5
-rw-r--r--testing/tests/simple.rs5
2 files changed, 2 insertions, 8 deletions
diff --git a/testing/tests/filters.rs b/testing/tests/filters.rs
index d6e9782..0e48b05 100644
--- a/testing/tests/filters.rs
+++ b/testing/tests/filters.rs
@@ -164,10 +164,7 @@ fn test_filter_let_filter() {
}
#[derive(Template)]
-#[template(
- source = "{{ foo|truncate(10) }}{{ foo|truncate(5) }}",
- ext = "txt"
-)]
+#[template(source = "{{ foo|truncate(10) }}{{ foo|truncate(5) }}", ext = "txt")]
struct TruncateFilter {
foo: String,
}
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 7206add..2cb404e 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -222,10 +222,7 @@ enum Alphabet {
}
#[derive(Template)]
-#[template(
- source = "{% if x == Alphabet::Alpha %}true{% endif %}",
- ext = "txt"
-)]
+#[template(source = "{% if x == Alphabet::Alpha %}true{% endif %}", ext = "txt")]
struct PathCompareTemplate {
x: Alphabet,
}