Repository navigation
Rustfmt layout crate - #21509
Rustfmt layout crate#21509
Conversation
|
Heads up! This PR modifies the following files:
|
| layout_el: <N::ConcreteThreadSafeLayoutNode as ThreadSafeLayoutNode>::ConcreteThreadSafeLayoutElement, | ||
| layout_root: &mut Flow, | ||
| requested_node: N, | ||
| longhand_id: LonghandId) -> String { |
There was a problem hiding this comment.
Rustfmt really struggled here. It wants to format the line as longhand_id: LonghandId) -> String{ without any indentation. I manually formatted it so both rustfmt and tidy accept it.
There was a problem hiding this comment.
Could you recreate a minimal testcase and submit an issue to https://github.com/rust-lang-nursery/rustfmt/?
|
r? @jdm |
|
☔ The latest upstream changes (presumably #21356) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Note to self: continue reviewing starting from components/layout/table.rs. |
|
This is good to merge once it's rebased. |
|
✌️ @pyfisch can now approve this pull request |
|
Rebased. I apparently have updated rustfmt in the meantime. Therefore the formatting is slightly different in a few places. I checked all changes. There a two kinds of changes. A short method call is placed on the same line as }). - })
- .collect();
+ }).collect();The other change is done in only two or three places and splits a comparison across multiple lines which I think looks odd. - .visibility != Visibility::Visible
+ .visibility !=
+ Visibility::Visible@bors-servo r=jdm |
|
📌 Commit 349047b has been approved by |
|
Thanks for the summary! |
Rustfmt layout crate Part of #21373 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21509) <!-- Reviewable:end -->
|
☀️ Test successful - android, android-x86, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
Part of #21373
This change is