Skip to content

In functions with hanging indent, put the opening paren on the previous line #31

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
nrc opened this issue Apr 29, 2015 · 1 comment
Closed
Labels
good first issue Issues up for grabs, also good candidates for new rustfmt contributors

Comments

@nrc
Copy link
Member

nrc commented Apr 29, 2015

E.g.,

fn foo <a, b, c> (
    a: A) {
}
// not
fn foo <a, b, c>
    (a: A) {
}

This is more apparent when both generics and arguments are on multiple lines. I'm not 100% sure which is better TBH, so we should probably keep an option for it. Interested on opinions on this too.

@nrc nrc added the good first issue Issues up for grabs, also good candidates for new rustfmt contributors label Apr 29, 2015
nrc added a commit that referenced this issue May 28, 2015
Optionally put the opening paren on the previous line for args (Issue #31)
@nrc
Copy link
Member Author

nrc commented May 29, 2015

Fixed by #81

@nrc nrc closed this as completed May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues up for grabs, also good candidates for new rustfmt contributors
Projects
None yet
Development

No branches or pull requests

1 participant