Skip to content

Refactor away duplication of get_rooted functionality - #7932

Merged
bors-servo merged 1 commit into
servo:masterfrom
pierrechevalier83:fix_issue_7929
Oct 9, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
pierrechevalier83:fix_issue_7929

Conversation

@pierrechevalier83

Copy link
Copy Markdown
Contributor

Refactor .get().map(Root::from_rooted)
and .get().map(|foo| foo.root())
to .get_rooted() on MutNullableHeap objects.

First part done mechanically with the following comand:
sed -i s/"get().map(Root::from_rooted)"/"get_rooted()"/g *.rs

Second part done manually after finding them with
git grep ".get().map("

Fixes #7929.

Review on Reviewable

Refactor .get().map(Root::from_rooted)
and .get().map(|foo| foo.root())
to .get_rooted() on MutNullableHeap objects.

First part done mechanically with the following comand:
sed -i s/"get().map(Root::from_rooted)"/"get_rooted()"/g *.rs

Second part done manually after finding them with
git grep ".get().map("

Fixes 7929.
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 8, 2015
@highfive

highfive commented Oct 8, 2015

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @jdm (or someone else) soon.

@pierrechevalier83

Copy link
Copy Markdown
Contributor Author

Hi servo devs,

This is my very first contribution to servo, pull request on github and venture in rust...
I come from a C++ background and I really like all that I've heard from rust so far, so I decided I would try to dip my toes in the water with servo. I picked this issue as it was the latest one tagged easy.

Please let me know if I messed anything up (very likely) and hopefully I'll learn from my mistakes ;)

@jdm

jdm commented Oct 8, 2015

Copy link
Copy Markdown
Member

This PR looks great to me! I was going to send it through our CI infrastructure, but our linux build machines are currently busted due to #7931. Once that's resolved we should be good to go.

@Ms2ger

Ms2ger commented Oct 9, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8b5fe88 has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8b5fe88 with merge 96356a4...

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 9, 2015
bors-servo pushed a commit that referenced this pull request Oct 9, 2015
Refactor away duplication of get_rooted functionality

Refactor .get().map(Root::from_rooted)
and .get().map(|foo| foo.root())
to .get_rooted() on MutNullableHeap objects.

First part done mechanically with the following comand:
sed -i s/"get().map(Root::from_rooted)"/"get_rooted()"/g *.rs

Second part done manually after finding them with
git grep ".get().map("

Fixes #7929.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7932)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 8b5fe88 into servo:master Oct 9, 2015
@pierrechevalier83
pierrechevalier83 deleted the fix_issue_7929 branch October 9, 2015 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants