This commit is contained in:
Rune Tynan 2021-03-04 19:44:09 -05:00
parent 83cece468e
commit 70c9b370e8
No known key found for this signature in database
GPG Key ID: 7ECC932F8B2C731E
1 changed files with 3 additions and 9 deletions

View File

@ -4,10 +4,7 @@ use super::*;
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);
}
}