diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-03-05 19:26:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 19:26:27 -0800 |
commit | 5ccf79e05570342ab9592fbc573229e38756344b (patch) | |
tree | 358f5b89faa0104b71d5ba745e54eb3feef67fcd /python/tidy/servo_tidy_tests | |
parent | 6b28a18f45199cfd80a949178af810001fcb83e0 (diff) | |
parent | 27b60135be714bc7d60beba2ee4095ef51645df9 (diff) | |
download | servo-5ccf79e05570342ab9592fbc573229e38756344b.tar.gz servo-5ccf79e05570342ab9592fbc573229e38756344b.zip |
Auto merge of #15827 - moonlightdrive:use-iflet-not-match, r=mbrubeck
replace match with if let
<!-- Please describe your changes on the following line: -->
Use `if let` instead of a `match` with a single pattern.
I'm not clear if/how this needs to be tested (beyond what's been checked-off below), so please let me know if there's more to do. Thanks!
---
<!-- 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 #15810
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- 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/15827)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests')
0 files changed, 0 insertions, 0 deletions