Skip to content

[BUG] Introspect derive macro fail #3199

Open
@notV4l

Description

@notV4l

Describe the bug
Introspect derive macro will fail for a Span/Array if it's last field and doesnt end by comma & have a comment

Not Ok

#[derive(Copy, Drop, Serde, Introspect)]
#[dojo::model]
pub struct MyModel {
    #[key]
    pub id: u32,
    pub array: Span<u32> // comment <-- fail :(
}

Ok

#[derive(Copy, Drop, Serde, Introspect)]
#[dojo::model]
pub struct MyModel {
    #[key]
    pub id: u32,
    pub array: Span<u32>, // comment
}

Additional context
1.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdojo-corecairo core tasks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions