aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/simple.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-09-14 13:44:33 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-09-14 13:44:33 +0200
commitba91884d762bcf0b4a5bd9ca18d14be240570316 (patch)
tree58e734e4bb1016912f35752f27b18d70e81925f5 /testing/tests/simple.rs
parent0711e3667b1e06e891b1b6972035d0330c5ae4c2 (diff)
downloadaskama-ba91884d762bcf0b4a5bd9ca18d14be240570316.tar.gz
askama-ba91884d762bcf0b4a5bd9ca18d14be240570316.tar.bz2
askama-ba91884d762bcf0b4a5bd9ca18d14be240570316.zip
Update formatting for rust 1.29.0 rustfmt
Diffstat (limited to 'testing/tests/simple.rs')
-rw-r--r--testing/tests/simple.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 4af2cea..9575daa 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -182,7 +182,10 @@ 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,
}
@@ -194,7 +197,10 @@ fn test_path_compare() {
}
#[derive(Template)]
-#[template(source = "{% for i in [\"a\", \"\"] %}{{ i }}{% endfor %}", ext = "txt")]
+#[template(
+ source = "{% for i in [\"a\", \"\"] %}{{ i }}{% endfor %}",
+ ext = "txt"
+)]
struct ArrayTemplate {}
#[test]