Skip to content

Use brace_style for async blocks #4942

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
Iron-E opened this issue Aug 6, 2021 · 1 comment
Closed

Use brace_style for async blocks #4942

Iron-E opened this issue Aug 6, 2021 · 1 comment

Comments

@Iron-E
Copy link

Iron-E commented Aug 6, 2021

I again apologize for how many issues I have opened at once. I just started using rustfmt on my project and have noticed a lot of things about brace_style, as an avid "AlwaysNextLine"-er.

async blocks don't adhere to brace_style. For example, the code snippet below is shown when running rustfmt:

async {
  // stuff
}

It should look like this:

async
{
  // stuff
}
@calebcartwright
Copy link
Member

Closing as per #4938 (comment)

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

2 participants