File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ use super::*;
44fn test_struct_info_roundtrip ( ) {
55 let s = ItemEnum :: Struct ( Struct {
66 struct_type : StructType :: Plain ,
7- generics : Generics {
8- params : vec ! [ ] ,
9- where_predicates : vec ! [ ]
10- } ,
7+ generics : Generics { params : vec ! [ ] , where_predicates : vec ! [ ] } ,
118 fields_stripped : false ,
129 fields : vec ! [ ] ,
1310 impls : vec ! [ ] ,
@@ -23,10 +20,7 @@ fn test_struct_info_roundtrip() {
2320#[ test]
2421fn test_union_info_roundtrip ( ) {
2522 let u = ItemEnum :: Union ( Union {
26- generics : Generics {
27- params : vec ! [ ] ,
28- where_predicates : vec ! [ ]
29- } ,
23+ generics : Generics { params : vec ! [ ] , where_predicates : vec ! [ ] } ,
3024 fields_stripped : false ,
3125 fields : vec ! [ ] ,
3226 impls : vec ! [ ] ,
@@ -37,4 +31,4 @@ fn test_union_info_roundtrip() {
3731 let de_u = serde_json:: from_str ( & union_json) . unwrap ( ) ;
3832
3933 assert_eq ! ( u, de_u) ;
40- }
34+ }
You can’t perform that action at this time.
0 commit comments