Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upremove extra clones from dom event script #14066
Conversation
highfive
commented
Nov 4, 2016
highfive
commented
Nov 4, 2016
|
Thanks for your contribution! Just one nit. |
| let bubbles = self.bubbles.clone(); | ||
| let cancelable = self.cancelable.clone(); | ||
| let bubbles = self.bubbles; | ||
| let cancelable = self.cancelable; |
This comment has been minimized.
This comment has been minimized.
nox
Nov 4, 2016
Member
Nit: pass self.bubbles and self.cancelable directly instead of binding them to local variables.
This comment has been minimized.
This comment has been minimized.
frewsxcv
Nov 4, 2016
Member
I moved them out because the borrow check was complaining that self was moved because of self.name in the next line.
This comment has been minimized.
This comment has been minimized.
|
So I tried doing that but am getting errors with https://gist.github.com/rjgoldsborough/7146daab82378135a37e79ee3be5aee1 Doing a clone on that heh yeah, what @frewsxcv just said :) |
|
I pushed up a commit that clones the Lemme know if there is a better fix and I will try to apply it. |
|
We probably don't want to clone let bubbles = self.bubbles.clone();let bubbles = self.bubbles;Cloning an |
|
Ah ok, cool. Rebased that commit out and repushed. Thanks. |
|
Thanks! @bors-servo r+ |
|
|
|
For more info about |
|
Thanks much |
…ewsxcv remove extra clones from dom event script <!-- Please describe your changes on the following line: --> fixes #14062 by removing extra clone calls --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14062 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because elements are already copies <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14066) <!-- Reviewable:end -->
|
|
highfive
commented
Nov 5, 2016
|
|
@bors-servo retry #13360 |
highfive
commented
Nov 5, 2016
|
|
@bors-servo retry #14067 |
|
Looking like this is a build thing but let me know if I can do anything. |
|
No worries, you're not doing anything wrong, your changes are good. When running tests, Servo (unfortunately) encounters intermittent failures/passes, so we have to 'retry' builds regularly. |
|
|
|
Cool. Yeah I've seen it on other issues but willing to jump in wherever. |
|
Trying to get homu unstuck |
5b22f85
to
c5f562a
|
@bors-servo r=frewsxcv |
|
|
…ewsxcv remove extra clones from dom event script <!-- Please describe your changes on the following line: --> fixes #14062 by removing extra clone calls --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14062 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because elements are already copies <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14066) <!-- Reviewable:end -->
|
|
|
@bors-servo retry clean |
…ewsxcv remove extra clones from dom event script <!-- Please describe your changes on the following line: --> fixes #14062 by removing extra clone calls --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14062 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because elements are already copies <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/14066) <!-- Reviewable:end -->
|
|
ducks commentedNov 4, 2016
•
edited by larsbergstrom
fixes #14062 by removing extra clone calls
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is