File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ use super::*;
4
4
fn test_struct_info_roundtrip ( ) {
5
5
let s = ItemEnum :: Struct ( Struct {
6
6
struct_type : StructType :: Plain ,
7
- generics : Generics {
8
- params : vec ! [ ] ,
9
- where_predicates : vec ! [ ]
10
- } ,
7
+ generics : Generics { params : vec ! [ ] , where_predicates : vec ! [ ] } ,
11
8
fields_stripped : false ,
12
9
fields : vec ! [ ] ,
13
10
impls : vec ! [ ] ,
@@ -23,10 +20,7 @@ fn test_struct_info_roundtrip() {
23
20
#[ test]
24
21
fn test_union_info_roundtrip ( ) {
25
22
let u = ItemEnum :: Union ( Union {
26
- generics : Generics {
27
- params : vec ! [ ] ,
28
- where_predicates : vec ! [ ]
29
- } ,
23
+ generics : Generics { params : vec ! [ ] , where_predicates : vec ! [ ] } ,
30
24
fields_stripped : false ,
31
25
fields : vec ! [ ] ,
32
26
impls : vec ! [ ] ,
@@ -37,4 +31,4 @@ fn test_union_info_roundtrip() {
37
31
let de_u = serde_json:: from_str ( & union_json) . unwrap ( ) ;
38
32
39
33
assert_eq ! ( u, de_u) ;
40
- }
34
+ }
You can’t perform that action at this time.
0 commit comments