Skip to content

Commit 382d0ac

Browse files
committed
rustfmt
1 parent c9ad62b commit 382d0ac

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

graphql_client/tests/union_query.rs

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,21 @@ fn union_query_deserialization() {
3232

3333
let expected = union_query::ResponseData {
3434
names: Some(vec![
35-
union_query::UnionQueryNames::Person(
36-
union_query::UnionQueryNamesOnPerson {
37-
first_name: "Audrey".to_string(),
38-
last_name: Some("Lorde".to_string()),
39-
}),
40-
union_query::UnionQueryNames::Dog(
41-
union_query::UnionQueryNamesOnDog {
42-
name: "Laïka".to_string(),
43-
}
44-
),
35+
union_query::UnionQueryNames::Person(union_query::UnionQueryNamesOnPerson {
36+
first_name: "Audrey".to_string(),
37+
last_name: Some("Lorde".to_string()),
38+
}),
39+
union_query::UnionQueryNames::Dog(union_query::UnionQueryNamesOnDog {
40+
name: "Laïka".to_string(),
41+
}),
4542
union_query::UnionQueryNames::Organization(
46-
union_query::UnionQueryNamesOnOrganization {
47-
title: "Mozilla".to_string(),
48-
},
43+
union_query::UnionQueryNamesOnOrganization {
44+
title: "Mozilla".to_string(),
45+
},
4946
),
50-
union_query::UnionQueryNames::Dog(
51-
union_query::UnionQueryNamesOnDog {
52-
name: "Norbert".to_string(),
53-
}
54-
),
47+
union_query::UnionQueryNames::Dog(union_query::UnionQueryNamesOnDog {
48+
name: "Norbert".to_string(),
49+
}),
5550
]),
5651
};
5752

@@ -122,7 +117,8 @@ fn fragment_and_more_on_union() {
122117
}),
123118
on: FragmentAndMoreOnUnionNamesOn::Dog(FragmentAndMoreOnUnionNamesOnDog {
124119
is_good_dog: true,
125-
})},
120+
}),
121+
},
126122
FragmentAndMoreOnUnionNames {
127123
names_fragment: NamesFragment::Organization(NamesFragmentOnOrganization {
128124
title: "Mozilla".into(),
@@ -134,8 +130,9 @@ fn fragment_and_more_on_union() {
134130
name: "Norbert".into(),
135131
}),
136132
on: FragmentAndMoreOnUnionNamesOn::Dog(FragmentAndMoreOnUnionNamesOnDog {
137-
is_good_dog: true
138-
})},
133+
is_good_dog: true,
134+
}),
135+
},
139136
]),
140137
};
141138
}

0 commit comments

Comments
 (0)