aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssrulelist.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-02-16 09:15:15 -0800
committerGitHub <noreply@github.com>2017-02-16 09:15:15 -0800
commit05623b36a15b594bbc690fcd8e3b642995618de1 (patch)
treebf92f43685fefde3f13e6fbb64d182b39e2e074c /components/script/dom/cssrulelist.rs
parent4a0b730cafd09fbd6e5cbc00727caef9b3cae315 (diff)
parent4d205f00b08db289db41b3e4c79d6c9a02f9c8a0 (diff)
downloadservo-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 'components/script/dom/cssrulelist.rs')
0 files changed, 0 insertions, 0 deletions