Skip to content

Suggest to store large enum variants as Box #1127

Closed
@stanislav-tkach

Description

@stanislav-tkach

For example:

enum Test {
    A(i32),
    B([i32; 8000]),
}

In this case it probably would be better to use B(Box<[i32; 8000]>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsT-middleType: Probably requires verifiying typesgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions