Skip to content

Commit 8012e26

Browse files
committed
Versionize enum variant with multiple fields
Signed-off-by: Ioana Chirca <[email protected]>
1 parent f74d248 commit 8012e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fields/enum_variant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl EnumVariant {
6363
if !self.exists_at(target_version) {
6464
if let Some(default_fn_ident) = get_ident_attr(&self.attrs, DEFAULT_FN) {
6565
return quote! {
66-
Self::#field_ident(_) => {
66+
Self::#field_ident(..) => {
6767
// Call user defined fn to provide a variant that exists in target version.
6868
let new_variant = self.#default_fn_ident(version)?;
6969
// The new_variant will serialize it's index and data.

0 commit comments

Comments
 (0)