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

Use brace_style for closures with blocks #4939

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

Use brace_style for closures with blocks #4939

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

Comments

@Iron-E
Copy link

Iron-E commented Aug 5, 2021

Closures with blocks don't adhere to brace_style. For example, when brace_style = "AlwaysNextLine", a closure with a block will look like this:

foo.ok_or_else(|| {
  // closure
})

It should be:

foo.ok_or_else(|| 
{
  // closure
})

Originally posted by me in #3376 (comment)

@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