Skip to content

Useless whitespace between two Tuple struct without named fields #5718

Closed as not planned
@erwanvivien

Description

@erwanvivien

Minimal reproduce:

struct A(u8);
struct B(A);

fn main() {
    let foo = B(A(0));

    dbg!(foo.0 .0);
}

Doesn't format to

dbg!(foo.0.0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicatefixed-with-v2The issue is resolved by setting `version = "Two"` in your projects rustfmt.toml

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions