Skip to content

structs with public members get extra pub prefix #95

@jonhoo

Description

@jonhoo

rustfmt adds an extra pub modifier to public fields in structs, causing the code to no longer compile.

// before rustfmt
struct X {
    pub x : u64,
}

// after rustfmt
struct X {
    pub    pub x: u64,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions