aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/vars.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-21 12:19:54 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-06-21 12:19:54 +0200
commit31b90ccc657a5468de6bdffea8d309f502cd0d07 (patch)
tree5b5689f15dfb2cdcc27eca10ef39212dd18db4f2 /testing/tests/vars.rs
parentf05a924c49afb537b624cfe3cbef3a95b13759a2 (diff)
downloadaskama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.gz
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.bz2
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.zip
Fix formatting with cargo fmt
Diffstat (limited to 'testing/tests/vars.rs')
-rw-r--r--testing/tests/vars.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/tests/vars.rs b/testing/tests/vars.rs
index 39a1415..81263da 100644
--- a/testing/tests/vars.rs
+++ b/testing/tests/vars.rs
@@ -15,7 +15,6 @@ fn test_let() {
assert_eq!(t.render().unwrap(), "foo");
}
-
#[derive(Template)]
#[template(path = "let-decl.html")]
struct LetDeclTemplate<'a> {
@@ -25,6 +24,9 @@ struct LetDeclTemplate<'a> {
#[test]
fn test_let_decl() {
- let t = LetDeclTemplate { cond: false, s: "bar" };
+ let t = LetDeclTemplate {
+ cond: false,
+ s: "bar",
+ };
assert_eq!(t.render().unwrap(), "bar");
}