Skip to content

Commit

Permalink
Format PR 2403 with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 8, 2023
1 parent 6081497 commit 43b23c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion serde_derive/src/ser.rs
Expand Up @@ -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! {
Expand Down
5 changes: 4 additions & 1 deletion test_suite/tests/test_annotations.rs
Expand Up @@ -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),
Expand Down

0 comments on commit 43b23c7

Please sign in to comment.