aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/hello.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/hello.rs
parentf05a924c49afb537b624cfe3cbef3a95b13759a2 (diff)
downloadaskama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.gz
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.bz2
askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.zip
Fix formatting with cargo fmt
Diffstat (limited to 'testing/tests/hello.rs')
-rw-r--r--testing/tests/hello.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/tests/hello.rs b/testing/tests/hello.rs
index 0d0c976..09a2e22 100644
--- a/testing/tests/hello.rs
+++ b/testing/tests/hello.rs
@@ -6,7 +6,8 @@ use askama::Template;
#[derive(Template)] // this will generate the code...
#[template(path = "hello.html")] // using the template in this path, relative
// to the templates dir in the crate root
-struct HelloTemplate<'a> { // the name of the struct can be anything
+struct HelloTemplate<'a> {
+ // the name of the struct can be anything
name: &'a str, // the field name should match the variable name
// in your template
}