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 upGamepadButtonList::sync_from_vr should use more iterators #20392 #20404
Conversation
…tead of an index variable and unwrapping the result.
highfive
commented
Mar 23, 2018
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon. |
highfive
commented
Mar 23, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Mar 23, 2018
|
@bors-servo r+ |
|
|
GamepadButtonList::sync_from_vr should use more iterators #20392 <!-- Please describe your changes on the following line: --> Used the zip function instead of iterating over both vectors with an indexing variable and using unwrap. --- <!-- 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 #20392(github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it says in the issue description no need for tests <!-- 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/20404) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
|
@bors-servo retry |
GamepadButtonList::sync_from_vr should use more iterators #20392 <!-- Please describe your changes on the following line: --> Used the zip function instead of iterating over both vectors with an indexing variable and using unwrap. --- <!-- 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 #20392(github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it says in the issue description no need for tests <!-- 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/20404) <!-- Reviewable:end -->
|
|
MaximilianDauner commentedMar 23, 2018
•
edited by jdm
Used the zip function instead of iterating over both vectors with an indexing variable and using unwrap.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is