Format PR 2403 with rustfmt

This commit is contained in:
David Tolnay 2023-06-07 21:18:30 -07:00
parent 6081497506
commit 43b23c7ea0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 7 additions and 2 deletions

View File

@ -483,7 +483,9 @@ fn serialize_variant(
(attr::TagType::Adjacent { tag, content }, false) => {
serialize_adjacently_tagged_variant(params, variant, cattrs, tag, content)
}
(attr::TagType::None, _) | (_, true) => serialize_untagged_variant(params, variant, cattrs),
(attr::TagType::None, _) | (_, true) => {
serialize_untagged_variant(params, variant, cattrs)
}
});
quote! {

View File

@ -2481,7 +2481,10 @@ fn test_partially_untagged_enum_generic() {
}
#[derive(Serialize, Deserialize, PartialEq, Debug)]
enum E<A, B, C> where A: Trait<C, Assoc2=B> {
enum E<A, B, C>
where
A: Trait<C, Assoc2 = B>,
{
A(A::Assoc),
#[serde(untagged)]
B(A::Assoc2),