diff options
| author | Edward Barnard | 2017-05-03 13:42:42 +0100 |
|---|---|---|
| committer | Edward Barnard | 2017-05-03 13:42:42 +0100 |
| commit | b1bfd407efbb9b2d58ec26f5323121dce93fcefd (patch) | |
| tree | 1049e64b75be3b316a49ce54b2de287f6d3a1208 /tests | |
| parent | 9581214eb7d73de2a5b9e25a7c314ac91412e231 (diff) | |
| download | rust-plist-b1bfd407efbb9b2d58ec26f5323121dce93fcefd.tar.bz2 | |
Rustfmt
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/serde_tests/mod.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/serde_tests/mod.rs b/tests/serde_tests/mod.rs index ad5140a..2b3ab85 100644 --- a/tests/serde_tests/mod.rs +++ b/tests/serde_tests/mod.rs @@ -199,8 +199,11 @@ struct NewtypeInner(u8, u8, u8); fn newtype_struct() { let newtype = NewtypeStruct(NewtypeInner(34, 32, 13)); - let comparison = - &[StartArray(Some(3)), IntegerValue(34), IntegerValue(32), IntegerValue(13), EndArray]; + let comparison = &[StartArray(Some(3)), + IntegerValue(34), + IntegerValue(32), + IntegerValue(13), + EndArray]; assert_roundtrip(newtype, Some(comparison)); } @@ -209,7 +212,7 @@ fn newtype_struct() { struct TypeWithOptions { a: Option<String>, b: Option<u32>, - c: Option<Box<TypeWithOptions>> + c: Option<Box<TypeWithOptions>>, } #[test] @@ -217,13 +220,13 @@ fn type_with_options() { let inner = TypeWithOptions { a: None, b: Some(12), - c: None + c: None, }; let obj = TypeWithOptions { a: Some("hello".to_owned()), b: None, - c: Some(Box::new(inner)) + c: Some(Box::new(inner)), }; let comparison = &[StartDictionary(None), @@ -242,7 +245,7 @@ fn type_with_options() { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] struct TypeWithDate { a: Option<i32>, - b: Option<Date> + b: Option<Date>, } #[test] |
