x.py fmt
This commit is contained in:
parent
83cece468e
commit
70c9b370e8
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user