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 upRefactor Bluetooth error handling #12538
Conversation
highfive
commented
Jul 21, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 21, 2016
|
r? @jdm |
|
-S-awaiting-review +S-needs-code-changes +S-awaiting-answer Just one nit and a question, thanks for your contribution! Reviewed 10 of 10 files at r1. components/net/bluetooth_thread.rs, line 507 [r1] (raw file):
Not components/script/bluetooth_utils.rs, line 128 [r1] (raw file):
Nit: make that an impl Comments from Reviewable |
|
components/net/bluetooth_thread.rs, line 507 [r1] (raw file):
|
|
Thanks! Please squash the commits together and I'll accept the PR. -S-awaiting-answer -S-awaiting-review +S-needs-squash Reviewed 9 of 9 files at r2. Comments from Reviewable |
|
@bors-servo try |
Refactor Bluetooth error handling <!-- Please describe your changes on the following line: --> Replace the error messages with an enum in `net/bluetooth_thread.rs`. Rename `bluetooth_blacklist.rs` to `bluetooth_utils.rs` and put the error conversion in it. With this the returned errors in DOM classes follow the specification. <!-- 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 do not require tests because there is no Web Bluetooth test API implementation yet. <!-- 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/12538) <!-- Reviewable:end -->
|
@bors-servo: r=nox |
|
|
Refactor Bluetooth error handling <!-- Please describe your changes on the following line: --> Replace the error messages with an enum in `net/bluetooth_thread.rs`. Rename `bluetooth_blacklist.rs` to `bluetooth_utils.rs` and put the error conversion in it. With this the returned errors in DOM classes follow the specification. <!-- 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 do not require tests because there is no Web Bluetooth test API implementation yet. <!-- 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/12538) <!-- Reviewable:end -->
|
|
highfive
commented
Jul 28, 2016
|
|
@bors-servo retry #12568 |
Refactor Bluetooth error handling <!-- Please describe your changes on the following line: --> Replace the error messages with an enum in `net/bluetooth_thread.rs`. Rename `bluetooth_blacklist.rs` to `bluetooth_utils.rs` and put the error conversion in it. With this the returned errors in DOM classes follow the specification. <!-- 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 do not require tests because there is no Web Bluetooth test API implementation yet. <!-- 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/12538) <!-- Reviewable:end -->
|
|
zakorgy commentedJul 21, 2016
•
edited by larsbergstrom
Replace the error messages with an enum in
net/bluetooth_thread.rs. Renamebluetooth_blacklist.rstobluetooth_utils.rsand put the error conversion in it.With this the returned errors in DOM classes follow the specification.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is