From 31b90ccc657a5468de6bdffea8d309f502cd0d07 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 21 Jun 2018 12:19:54 +0200 Subject: Fix formatting with cargo fmt --- testing/tests/loops.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'testing/tests/loops.rs') 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"); } -- cgit