]> git.lizzy.rs Git - rust.git/blobdiff - src/rustdoc-json-types/tests.rs
Rollup merge of #83671 - JohnTitor:issue-75801-test, r=Dylan-DPC
[rust.git] / src / rustdoc-json-types / tests.rs
index 4a5994f4c087c578ffde6c4dad6ec84bd33cafdf..e7f6447ed87531dc944188e5a3fdf24ba90023ca 100644 (file)
@@ -4,10 +4,7 @@
 fn test_struct_info_roundtrip() {
     let s = ItemEnum::Struct(Struct {
         struct_type: StructType::Plain,
-        generics: Generics {
-            params: vec![],
-            where_predicates: vec![]
-        },
+        generics: Generics { params: vec![], where_predicates: vec![] },
         fields_stripped: false,
         fields: vec![],
         impls: vec![],
@@ -23,10 +20,7 @@ fn test_struct_info_roundtrip() {
 #[test]
 fn test_union_info_roundtrip() {
     let u = ItemEnum::Union(Union {
-        generics: Generics {
-            params: vec![],
-            where_predicates: vec![]
-        },
+        generics: Generics { params: vec![], where_predicates: vec![] },
         fields_stripped: false,
         fields: vec![],
         impls: vec![],
@@ -37,4 +31,4 @@ fn test_union_info_roundtrip() {
     let de_u = serde_json::from_str(&union_json).unwrap();
 
     assert_eq!(u, de_u);
-}
\ No newline at end of file
+}