Skip to content
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

Extra indentation on line that starts with dot and previous line is close parenthesis. #487

Open
daniel-wong-dfinity-org opened this issue Jan 10, 2023 · 0 comments

Comments

@daniel-wong-dfinity-org
Copy link
Contributor

daniel-wong-dfinity-org commented Jan 10, 2023

rustfmt wants indentation like this:

foo(
    // Whatnot
    42,
)
.bar() // Same amount of indentation on this line as the previous line with close parenthesis.

but rust-mode does this:

foo(
    // Whatnot
    42,
)
    .bar()  // Extra indentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant