Skip to content

Commit 43b23c7

Browse files
committed
Format PR 2403 with rustfmt
1 parent 6081497 commit 43b23c7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

serde_derive/src/ser.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ fn serialize_variant(
483483
(attr::TagType::Adjacent { tag, content }, false) => {
484484
serialize_adjacently_tagged_variant(params, variant, cattrs, tag, content)
485485
}
486-
(attr::TagType::None, _) | (_, true) => serialize_untagged_variant(params, variant, cattrs),
486+
(attr::TagType::None, _) | (_, true) => {
487+
serialize_untagged_variant(params, variant, cattrs)
488+
}
487489
});
488490

489491
quote! {

test_suite/tests/test_annotations.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,10 @@ fn test_partially_untagged_enum_generic() {
24812481
}
24822482

24832483
#[derive(Serialize, Deserialize, PartialEq, Debug)]
2484-
enum E<A, B, C> where A: Trait<C, Assoc2=B> {
2484+
enum E<A, B, C>
2485+
where
2486+
A: Trait<C, Assoc2 = B>,
2487+
{
24852488
A(A::Assoc),
24862489
#[serde(untagged)]
24872490
B(A::Assoc2),

0 commit comments

Comments
 (0)