diff options
author | 2017-11-21 20:53:57 +0100 | |
---|---|---|
committer | 2017-11-21 20:57:56 +0100 | |
commit | 83cc6e0ca3e9878c47593ab737e6bf106ea062db (patch) | |
tree | e3ec5ac6d25c5835792d7fdc094253ab2fade059 /testing/tests/loops.rs | |
parent | 958680aee0fc2d58200382223937e8123fae7459 (diff) | |
download | askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.tar.gz askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.tar.bz2 askama-83cc6e0ca3e9878c47593ab737e6bf106ea062db.zip |
Apply suggestions from rustfmt to improve style
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"); } |