From 70c9b370e822424de5c35b97bf49dffb5b8b9167 Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Thu, 4 Mar 2021 19:44:09 -0500 Subject: [PATCH] x.py fmt --- src/rustdoc-json-types/tests.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/rustdoc-json-types/tests.rs b/src/rustdoc-json-types/tests.rs index 4a5994f4c08..e7f6447ed87 100644 --- a/src/rustdoc-json-types/tests.rs +++ b/src/rustdoc-json-types/tests.rs @@ -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); -} \ No newline at end of file +}