-
Notifications
You must be signed in to change notification settings - Fork 883
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
Two closures as function call arguments #1713
Labels
Comments
Agreed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using Rayon and have code that looks like this:
Rustfmt formats it to:
This looks quite inconsistent. Why would the first closure be kept in the first line, but the other is split accross multiple lines?
It seems that we need another rule with regards to the closure-as-last-argument in functions calls:
If the argument list contains multiple closures, then each argument is placed on a dedicated line.
The text was updated successfully, but these errors were encountered: