Skip to content

rustfmt inserts a space between consecutive tuple indexes #6008

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
brianfeaster opened this issue Jan 6, 2024 · 1 comment
Closed

rustfmt inserts a space between consecutive tuple indexes #6008

brianfeaster opened this issue Jan 6, 2024 · 1 comment
Labels
duplicate fixed-with-v2 The issue is resolved by setting `version = "Two"` in your projects rustfmt.toml

Comments

@brianfeaster
Copy link

brianfeaster commented Jan 6, 2024

fn main() {
    let t = (((1,),),);
    println!("{:?}", t.0.0.0);
    println!("{:?}", t.0 .0 .0); // rustfmt adds spaces
}

Playground

@ytmimi
Copy link
Contributor

ytmimi commented Jan 6, 2024

This is a duplicate of #5745 and other linked issues. This is resolved when using version=Two

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2024
@ytmimi ytmimi added duplicate fixed-with-v2 The issue is resolved by setting `version = "Two"` in your projects rustfmt.toml labels Jan 6, 2024
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