Skip to content

Add support for single line enum formatting #2139

@kayagokalp

Description

@kayagokalp

Currently, enums are always formatted into multiple lines but I guess we should do the same thing we are doing for structs and storage (once #2124 is merged) which is deciding whether to format into single or multiple lines based on the length.

So once we address this issue we should be able to format:

enum Color {
    Blue: (),
    Green: (),
}

to something like:

enum Color { Blue: (), Green: () }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions