diff options
Diffstat (limited to '')
-rw-r--r-- | testing/tests/loops.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/testing/tests/loops.rs b/testing/tests/loops.rs index 3125598..987f26a 100644 --- a/testing/tests/loops.rs +++ b/testing/tests/loops.rs @@ -11,9 +11,7 @@ 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"); } @@ -28,8 +26,6 @@ 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"); } |