Skip to content
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

Make prepare_for_composite return void #23492

Closed
jdm opened this issue Jun 1, 2019 · 4 comments
Closed

Make prepare_for_composite return void #23492

jdm opened this issue Jun 1, 2019 · 4 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Jun 1, 2019

It's declared to return bool, but all implementations return true. This means that the code that checks whether it returns false in compositor.rs is unused.

Code: components/compositing/compositor.rs, components/compositing/windowing.rs, ports/glutin/headed_window.rs, ports/glutin/headless_window.rs, ports/libsimpleservo/api/src/lib.rs

@highfive
Copy link

@highfive highfive commented Jun 1, 2019

Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

@oneturkmen
Copy link
Contributor

@oneturkmen oneturkmen commented Jun 1, 2019

@highfive: assign me

@highfive
Copy link

@highfive highfive commented Jun 1, 2019

Hey @oneturkmen! Thanks for your interest in working on this issue. It's now assigned to you!

@highfive highfive added the C-assigned label Jun 1, 2019
@oneturkmen
Copy link
Contributor

@oneturkmen oneturkmen commented Jun 1, 2019

@jdm, will start on this in a few days, right after #22854 (WIP).

@oneturkmen oneturkmen mentioned this issue Jun 5, 2019
4 of 5 tasks complete
bors-servo added a commit that referenced this issue Jun 5, 2019
Make prepare_for_composite return void

<!-- Please describe your changes on the following line: -->
Changed the signature of `fn prepare_for_composite(...)` to return void (unit) instead of boolean.

---
<!-- 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 #23492 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because these are clean-up changes (do not include new feature or fixed bug).

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23517)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jun 5, 2019
Make prepare_for_composite return void

<!-- Please describe your changes on the following line: -->
Changed the signature of `fn prepare_for_composite(...)` to return void (unit) instead of boolean.

---
<!-- 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 #23492 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because these are clean-up changes (do not include new feature or fixed bug).

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/23517)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.