Skip to content

Useless whitespace between two Tuple struct without named fields #5718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
erwanvivien opened this issue Mar 20, 2023 · 1 comment
Closed
Labels
duplicate fixed-with-v2 The issue is resolved by setting `version = "Two"` in your projects rustfmt.toml

Comments

@erwanvivien
Copy link

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);
@ytmimi
Copy link
Contributor

ytmimi commented Mar 21, 2023

Thanks for reaching out. This is a duplicate of #5532

This is fixed when setting version=Two. See #4355 (comment) for more details.

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2023
@ytmimi ytmimi added duplicate fixed-with-v2 The issue is resolved by setting `version = "Two"` in your projects rustfmt.toml labels Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate fixed-with-v2 The issue is resolved by setting `version = "Two"` in your projects rustfmt.toml
Projects
None yet
Development

No branches or pull requests

2 participants