Skip to content

Commit 70c9b37

Browse files
committed
x.py fmt
1 parent 83cece4 commit 70c9b37

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/rustdoc-json-types/tests.rs

+3-9
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ use super::*;
44
fn 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]
2421
fn 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+
}

0 commit comments

Comments
 (0)