Skip to content

DeJson macro fails for tuple-like and struct-like enum variants with trailing commas #166

Description

@tadeohepperle

For example this does not compile:

#[derive()
#[derive(Debug, Clone, SerJson, DeJson)]
enum MyEnum {
    A,
    B,
    EnumVariantWithVeryLongNameSoRustFmtPutsATrailingCommaBehindLastVariant(
       String, 
       String, 
    )
}

because the parser in the proc macro crate thinks there is another field after the trailing comma.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions