Skip to content

Consider using rustfmt #438

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
dtolnay opened this issue Jul 12, 2016 · 5 comments
Closed

Consider using rustfmt #438

dtolnay opened this issue Jul 12, 2016 · 5 comments
Assignees

Comments

@dtolnay
Copy link
Member

dtolnay commented Jul 12, 2016

No description provided.

@dtolnay dtolnay self-assigned this Jul 13, 2016
@dtolnay dtolnay changed the title Consider using cargo fmt Consider using rustfmt Jul 13, 2016
@dtolnay dtolnay mentioned this issue Jul 13, 2016
@dtolnay
Copy link
Member Author

dtolnay commented Jul 13, 2016

Overall I am very happy with the formatting in #439. There are a few bugs to iron out and maybe we need to develop new idioms around chained aster builders but I think rustfmt will be a net benefit.

@dtolnay dtolnay added this to the v0.8.0 milestone Jul 18, 2016
@dtolnay dtolnay removed this from the v0.8.0 milestone Aug 19, 2016
@dtolnay dtolnay mentioned this issue Feb 13, 2017
@oli-obk
Copy link
Member

oli-obk commented Feb 13, 2017

Should we add a rustfmt target to travis? Doesn't need to fail the build, but just so we know the state of things?

@oli-obk oli-obk reopened this Feb 13, 2017
@oli-obk
Copy link
Member

oli-obk commented Feb 13, 2017

note that we fail the build in clippy if rustfmt fails, but there have been some voice speaking against that.

@dtolnay
Copy link
Member Author

dtolnay commented Feb 13, 2017

I don't think that would be valuable. The tradeoff is scaring away new contributors. If someone makes a PR, I would prefer that they remember it as a reasonable discussion about meaningful things, rather than as a struggle to satisfy a grumpy buildbot. Even if the overall build is green, seeing a red task can be anxiety-inducing and uncertain about whether you are responsible for fixing it. Instead, if the code looks mostly fine then I won't notice or care anyway, and somebody will run rustfmt every month or so and it takes 10 seconds to clean everything up so there isn't really anything to gain from enforcing it.

@oli-obk
Copy link
Member

oli-obk commented Feb 13, 2017

Sounds sensible!

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

No branches or pull requests

2 participants