diff options
Diffstat (limited to 'testing/tests/vars.rs')
-rw-r--r-- | testing/tests/vars.rs | 6 |
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"); } |