mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 10:11:01 +00:00
Format PR 2403 with rustfmt
This commit is contained in:
@@ -483,7 +483,9 @@ fn serialize_variant(
|
|||||||
(attr::TagType::Adjacent { tag, content }, false) => {
|
(attr::TagType::Adjacent { tag, content }, false) => {
|
||||||
serialize_adjacently_tagged_variant(params, variant, cattrs, tag, content)
|
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! {
|
quote! {
|
||||||
|
|||||||
@@ -2481,7 +2481,10 @@ fn test_partially_untagged_enum_generic() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, PartialEq, Debug)]
|
#[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),
|
A(A::Assoc),
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
B(A::Assoc2),
|
B(A::Assoc2),
|
||||||
|
|||||||
Reference in New Issue
Block a user