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

GamepadButtonList::sync_from_vr should use more iterators #20392 #20404

Merged
merged 1 commit into from Mar 24, 2018

Conversation

@MaximilianDauner
Copy link
Contributor

MaximilianDauner commented Mar 23, 2018

Used the zip function instead of iterating over both vectors with an indexing variable and using unwrap.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #20392(github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because it says in the issue description no need for tests

This change is Reviewable

…tead of an

index variable and unwrapping the result.
@highfive
Copy link

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
Copy link

highfive commented Mar 23, 2018

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/gamepadbuttonlist.rs
  • @fitzgen: components/script/dom/gamepadbuttonlist.rs
  • @KiChjang: components/script/dom/gamepadbuttonlist.rs
@highfive
Copy link

highfive commented Mar 23, 2018

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@jdm
Copy link
Member

jdm commented Mar 23, 2018

@bors-servo r+
Thanks for cleaning this up!

@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2018

📌 Commit b42e54f has been approved by jdm

@highfive highfive assigned jdm and unassigned Manishearth Mar 23, 2018
@bors-servo
Copy link
Contributor

bors-servo commented Mar 23, 2018

Testing commit b42e54f with merge 466faeb...

bors-servo added a commit that referenced this pull request Mar 23, 2018
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
Copy link
Contributor

bors-servo commented Mar 23, 2018

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented Mar 24, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2018

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented Mar 24, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Mar 24, 2018

Testing commit b42e54f with merge 5a432ea...

bors-servo added a commit that referenced this pull request Mar 24, 2018
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
Copy link
Contributor

bors-servo commented Mar 24, 2018

@bors-servo bors-servo merged commit b42e54f into servo:master Mar 24, 2018
3 of 4 checks passed
3 of 4 checks passed
Taskcluster (pull_request) TaskGroup: failure
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

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