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

Support for comma-first style #752

Closed
hawkw opened this issue Jan 9, 2016 · 3 comments
Closed

Support for comma-first style #752

hawkw opened this issue Jan 9, 2016 · 3 comments

Comments

@hawkw
Copy link

hawkw commented Jan 9, 2016

I prefer the comma-first coding style and like using it in my Rust projects. I'd love to see a config option in rustfmt to allow this style.

@hawkw
Copy link
Author

hawkw commented Jan 9, 2016

I'd be quite happy to implement this feature myself, but I am not terribly familiar with how rustfmt works under the hood, and I wouldn't really know where to start. I could get a couple pointers in the right direction from a maintainer, I'll fork the project and try to add this feature.

@nrc
Copy link
Member

nrc commented Jan 10, 2016

@hawkw have you seen https://github.com/rust-lang-nursery/rustfmt/blob/master/Contributing.md#a-quick-tour-of-rustfmt ? I imagine you could implement this by changing code in lists.rs, unfortunately that is some of the more complex parts of rustfmt. Once you've had a look, feel free to ask questions here or on irc.

@topecongiro
Copy link
Contributor

We are unlikely to support this, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants