diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-21 12:19:54 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-21 12:19:54 +0200 |
commit | 31b90ccc657a5468de6bdffea8d309f502cd0d07 (patch) | |
tree | 5b5689f15dfb2cdcc27eca10ef39212dd18db4f2 /testing/tests/hello.rs | |
parent | f05a924c49afb537b624cfe3cbef3a95b13759a2 (diff) | |
download | askama-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.rs | 3 |
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 } |