mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 07:38:01 +00:00
Fix adjacently tagged empty tuple variant or struct variant
This commit is contained in:
@@ -645,7 +645,7 @@ fn serialize_adjacently_tagged_variant(
|
||||
|
||||
let (_, ty_generics, where_clause) = params.generics.split_for_impl();
|
||||
|
||||
let wrapper_generics = if let Style::Unit = variant.style {
|
||||
let wrapper_generics = if fields_ident.is_empty() {
|
||||
params.generics.clone()
|
||||
} else {
|
||||
bound::with_lifetime_bound(¶ms.generics, "'__a")
|
||||
|
||||
Reference in New Issue
Block a user