diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-16 09:15:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 09:15:15 -0800 |
commit | 05623b36a15b594bbc690fcd8e3b642995618de1 (patch) | |
tree | bf92f43685fefde3f13e6fbb64d182b39e2e074c /python/tidy/servo_tidy_tests | |
parent | 4a0b730cafd09fbd6e5cbc00727caef9b3cae315 (diff) | |
parent | 4d205f00b08db289db41b3e4c79d6c9a02f9c8a0 (diff) | |
download | servo-05623b36a15b594bbc690fcd8e3b642995618de1.tar.gz servo-05623b36a15b594bbc690fcd8e3b642995618de1.zip |
Auto merge of #15590 - gregkatz:webidl-enum-as-str, r=Ms2ger
Adds an `as_str()` method to WebIDL enums to hide slice of strings
<!-- Please describe your changes on the following line: -->
This PR adds an `as_str()` method to WebIDL enums to hide slice of strings from callers. It uses the new method in two places. It also eliminates a to_string() call that seemed unnecessary to me.
---
<!-- 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 #15586 (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because github issue says no tests needed.
<!-- 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/15590)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests')
0 files changed, 0 insertions, 0 deletions