Skip to content

[Bug] VariantFormat::Unit missing inner value #45

Description

@0x241F31

Consider following enum:

pub enum UnitEnum {
	ONE   = 5,
	THREE = 3,
	FIVE  = 1,
}

This produces container:

Enum(
    {
        0: Named {
            name: "ONE",
            value: Unit,
        },
        1: Named {
            name: "THREE",
            value: Unit,
        },
        2: Named {
            name: "FIVE",
            value: Unit,
        },
    },
)

But missing actual inner values

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions