-
Notifications
You must be signed in to change notification settings - Fork 701
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
Run cargo fmt
#471
Run cargo fmt
#471
Conversation
@bors-servo r=me |
@bors-servo r+ |
📌 Commit 58b3ed1 has been approved by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, though I'm afraid this will cause a lot of unneeded pain in #468, maybe we should cherry-pick only the changes that don't touch codegen for now?
EDIT: whoops, didn't see the self-review
@@ -1012,10 +1020,12 @@ impl CodeGenerator for CompInfo { | |||
|
|||
// Try to catch a bitfield contination early. | |||
if let (Some(ref mut bitfield_width), Some(width)) = | |||
(current_bitfield_width, field.bitfield()) { | |||
(current_bitfield_width, field.bitfield()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a fan of this one :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I often wouldn't make the specific choices rustfmt
makes, but that's not really the point ;) The point is not having to make the choices, and argue about them with each other.
Woops :( I just wanted to get this stuff out from cluttering up my own feature branch :-/ |
Maybe we should revisit the decision not to fail CI on unformatted code? |
You mean to fail CI on unformatted code? Yeah, that's probably fine, and avoids these noisy diffs. |
Ok, will send a new PR for this soon. |
Run `cargo fmt` It's been a while, and we have a lot of reformatting with the latest version of `rustfmt`.
☀️ Test successful - status-travis |
It's been a while, and we have a lot of reformatting with the latest version of
rustfmt
.