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/loops.rs | |
parent | f05a924c49afb537b624cfe3cbef3a95b13759a2 (diff) | |
download | askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.gz askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.tar.bz2 askama-31b90ccc657a5468de6bdffea8d309f502cd0d07.zip |
Fix formatting with cargo fmt
Diffstat (limited to '')
-rw-r--r-- | testing/tests/loops.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/tests/loops.rs b/testing/tests/loops.rs index 987f26a..32f0aca 100644 --- a/testing/tests/loops.rs +++ b/testing/tests/loops.rs @@ -11,11 +11,12 @@ struct ForTemplate<'a> { #[test] fn test_for() { - let s = ForTemplate { strings: vec!["A", "alfa", "1"] }; + let s = ForTemplate { + strings: vec!["A", "alfa", "1"], + }; assert_eq!(s.render().unwrap(), "0. A\n1. alfa\n2. 1\n"); } - #[derive(Template)] #[template(path = "nested-for.html")] struct NestedForTemplate<'a> { @@ -26,6 +27,8 @@ struct NestedForTemplate<'a> { fn test_nested_for() { let alpha = vec!["a", "b", "c"]; let numbers = vec!["one", "two"]; - let s = NestedForTemplate { seqs: vec![&alpha, &numbers] }; + let s = NestedForTemplate { + seqs: vec![&alpha, &numbers], + }; assert_eq!(s.render().unwrap(), "1\n 0a1b2c2\n 0one1two"); } |